From 81ead99412c545cf22bdceeb21abf3d2b7a4c9c4 Mon Sep 17 00:00:00 2001 From: Nina Bernick Date: Fri, 26 Jul 2024 11:34:53 -0700 Subject: [PATCH] update env store of tag --- .github/workflows/build-and-push.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 4dc34c3..65e39b3 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -51,9 +51,9 @@ jobs: id: docker_tag run: | if [ "${{ github.ref }}" == "refs/heads/main" ]; then - echo "::set-output name=tag::${{ steps.release.outputs.version }}" + echo "tag=${{ steps.release.outputs.version }}" >> $GITHUB_ENV else - echo "::set-output name=tag::latest" + echo "tag=latest" >> $GITHUB_ENV fi - name: Build and push Docker image @@ -62,4 +62,4 @@ jobs: context: . push: true tags: | - ghcr.io/${{ github.repository }}-test:${{ steps.docker_tag.outputs.version }} + ghcr.io/${{ github.repository }}-test:${{ env.tag }}