diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d9c1671..5f0ee37 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,22 +1,17 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - name: Publish Docker image on: release: types: [published] + workflow_dispatch: jobs: push_to_registries: name: Push Docker image to registry runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux/amd64, linux/arm64] permissions: packages: write contents: read @@ -29,19 +24,19 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - + - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: | + images: | ghcr.io/${{ github.repository }} tags: | type=semver,pattern={{version}} @@ -50,9 +45,9 @@ jobs: uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . - platforms: linux/amd64,linux/arm64 + platforms: ${{ matrix.platform }} build-args: | BASE_ALGORAND_VERSION=3.25.0 - push: true + push: false tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file