From cbbd726ca175f23384960e99a50a86df208aa166 Mon Sep 17 00:00:00 2001 From: Irori235 Date: Wed, 1 Nov 2023 21:08:24 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix=20docker=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e493215..baf642e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -32,12 +32,14 @@ jobs: password: ${{ steps.auth.outputs.access_token }} - name: Create Tag id: create-tag - run: echo 'tag=${{ github.sha }}' >> $GITHUB_OUTPUT + run: | + echo 'tag1=asia-northeast1-docker.pkg.dev/${{ secrets.GOOGLE_PROJECT_ID }}/irori-dev/portofolio:${{ github.sha }}' >> $GITHUB_OUTPUT + echo 'tag2=asia-northeast1-docker.pkg.dev/${{ secrets.GOOGLE_PROJECT_ID }}/irori-dev/portofolio:latest' >> $GITHUB_OUTPUT - name: Build and push uses: docker/build-push-action@v5 with: context: . push: true tags: | - user/app:${{ steps.create-tag.outputs.tag }} - user/app:latest + ${{ steps.create-tag.outputs.tag1 }} + ${{ steps.create-tag.outputs.tag2 }}