ci: fix RELEASE_TAG env inject

This commit is contained in:
Mohamed Sohail 2024-02-05 17:14:21 +03:00
parent a6ff999a80
commit 8cb78eb2db
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -36,6 +36,10 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Set outputs
run: |
echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push image - name: Build and push image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
@ -48,3 +52,4 @@ jobs:
tags: | tags: |
ghcr.io/grassrootseconomics/farmstar-survey-backend/farmstar-survey-backend:latest ghcr.io/grassrootseconomics/farmstar-survey-backend/farmstar-survey-backend:latest
ghcr.io/grassrootseconomics/farmstar-survey-backend/farmstar-survey-backend:${{ env.RELEASE_TAG }} ghcr.io/grassrootseconomics/farmstar-survey-backend/farmstar-survey-backend:${{ env.RELEASE_TAG }}