diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index baf642e..3d6ac73 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,13 +33,11 @@ jobs: - name: Create Tag id: create-tag 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 + echo 'tag=asia-northeast1-docker.pkg.dev/${{ secrets.GOOGLE_PROJECT_ID }}/irori-dev/portfolio:${{ github.sha }}' >> $GITHUB_OUTPUT - name: Build and push uses: docker/build-push-action@v5 with: context: . push: true tags: | - ${{ steps.create-tag.outputs.tag1 }} - ${{ steps.create-tag.outputs.tag2 }} + ${{ steps.create-tag.outputs.tag }}