diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 933c257..699acc2 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -18,6 +18,11 @@ permissions: contents: read packages: write +env: + platforms: linux/amd64,linux/arm64 + registry: ghcr.io + image: ghcr.io/${{ github.repository_owner }}/fedhcp + jobs: buildAndPush: runs-on: ubuntu-latest @@ -29,7 +34,7 @@ jobs: id: meta with: images: | - ghcr.io/${{ github.repository_owner }}/fedhcp + ${{ env.image }} tags: | type=semver,pattern={{version}} type=schedule @@ -57,7 +62,7 @@ jobs: if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: - registry: ghcr.io + registry: ${{ env.registry }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push @@ -65,7 +70,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - platforms: linux/amd64 + platforms: ${{ env.platforms }} push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}