From 8cb78eb2db6bd462241aad9882ccb21c746aef31 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Mon, 5 Feb 2024 17:14:21 +0300 Subject: [PATCH] ci: fix RELEASE_TAG env inject --- .github/workflows/release.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0274cb4..2797fd9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,16 +35,21 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - + + - name: Set outputs + run: | + echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Build and push image uses: docker/build-push-action@v2 with: context: ./ file: ./Dockerfile platforms: linux/amd64 - push: true + push: true cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache tags: | ghcr.io/grassrootseconomics/farmstar-survey-backend/farmstar-survey-backend:latest ghcr.io/grassrootseconomics/farmstar-survey-backend/farmstar-survey-backend:${{ env.RELEASE_TAG }} + \ No newline at end of file