From 46201132b620478ec54663ee5635145572ed2d36 Mon Sep 17 00:00:00 2001 From: Yang Date: Thu, 15 Aug 2024 00:20:49 +1000 Subject: [PATCH] add `build` label instead --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51bf22b..726b561 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,8 @@ jobs: with: context: . push: true - tags: ${{ env.CONTAINER_IMAGE }}:${{ env.SHA_SHORT }},${{ env.CONTAINER_IMAGE }}:latest + labels: build=${{ env.SHA_SHORT }} + tags: ${{ env.CONTAINER_IMAGE }}:latest - uses: google-github-actions/auth@v2 with: @@ -91,7 +92,7 @@ jobs: - name: Deploy to Cloud Run run: | gcloud run deploy ${{ env.SERVICE_NAME }} \ - --image ${{ env.CONTAINER_IMAGE }}:${{ env.SHA_SHORT }} \ + --image ${{ env.CONTAINER_IMAGE }}:latest \ --region ${{ env.REGION }} \ --cpu ${{ env.CPU }} \ --memory ${{ env.MEMORY }} \