From da5fb10bc4aaf682356f8302818af92ebf9511bd Mon Sep 17 00:00:00 2001 From: Yang Date: Thu, 15 Aug 2024 01:03:46 +1000 Subject: [PATCH] Revert to tagging sha and latest. Disable multi arch build. --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 726b561..8e26a00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,8 +64,6 @@ jobs: - name: Build GraalVM native executable run: ./gradlew nativeCompile --no-configuration-cache - - uses: docker/setup-buildx-action@v3 - - uses: docker/login-action@v3 with: registry: ${{ env.REGION }}-docker.pkg.dev @@ -80,8 +78,7 @@ jobs: with: context: . push: true - labels: build=${{ env.SHA_SHORT }} - tags: ${{ env.CONTAINER_IMAGE }}:latest + tags: ${{ env.CONTAINER_IMAGE }}:${{ env.SHA_SHORT }},${{ env.CONTAINER_IMAGE }}:latest - uses: google-github-actions/auth@v2 with: @@ -92,7 +89,7 @@ jobs: - name: Deploy to Cloud Run run: | gcloud run deploy ${{ env.SERVICE_NAME }} \ - --image ${{ env.CONTAINER_IMAGE }}:latest \ + --image ${{ env.CONTAINER_IMAGE }}:${{ env.SHA_SHORT }} \ --region ${{ env.REGION }} \ --cpu ${{ env.CPU }} \ --memory ${{ env.MEMORY }} \