Skip to content

v0.2.1

v0.2.1 #4

Workflow file for this run

name: Release
on:
workflow_dispatch:
release:
types: [created]
jobs:
docker:
name: Build and push Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/jadolg/antivax:${{ github.sha }} , ghcr.io/jadolg/antivax:latest , ghcr.io/jadolg/antivax:${{ github.ref_name }}
build-args: |
VERSION=${{ github.ref_name }}
COMMIT=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max