Skip to content

Workflow file for this run

name: Build Docker image on tag
on: push
# push:
# tags:
# - '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
run: docker login --username "${{ github.actor }}" --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
- name: Checkout codebase
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Docker buildx
run: docker buildx create --use
- name: Build Docker images
run: docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ github.repository }}:${{ github.ref_name }} --push ghcr.io .