Skip to content

Allow publishing manually #5

Allow publishing manually

Allow publishing manually #5

Workflow file for this run

name: Publish to Github Container Registry
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build Docker images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
run: |
docker buildx bake \
--push \
--set="*.platform=linux/amd64,linux/arm64" \
--set="*.cache-from=type=gha" \
--set="*.cache-to=type=gha,mode=max"