From d77c168ae02791b5bb34f11c42473d16c81d7b81 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Tue, 4 Feb 2025 11:55:43 -0800 Subject: [PATCH] test docker publish --- .github/workflows/docker-push.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index ebf1d6da..5c708e64 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -1,18 +1,35 @@ name: Publish Docker image + on: - release: - types: [published] + # push: + # branches: + # - main # Run tests on pushes to the main branch + pull_request: + # branches: + # - main # Run tests on pull requests to the main branch +# release: +# types: [published] jobs: - push_to_registry: + + release: name: Push Docker image to Docker Hub - runs-on: ubuntu-latest + runs-on: ${{ matrix.builder }} permissions: packages: write contents: read attestations: write id-token: write + + strategy: + matrix: + include: + - builder: ubuntu-latest + platform: linux/amd64 + - builder: buildjet-8vcpu-ubuntu-2204-arm + platform: linux/arm64 + steps: - name: Check out the repo uses: actions/checkout@v4 @@ -27,7 +44,7 @@ jobs: id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: katanemo/archgw + images: katanemo/archgw-test - name: Build and push Docker image id: push