mirror of
https://github.com/grassrootseconomics/farmstar-survey-backend.git
synced 2024-12-04 15:36:48 +01:00
ci: fix RELEASE_TAG env inject
This commit is contained in:
parent
a6ff999a80
commit
8cb78eb2db
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
@ -35,16 +35,21 @@ jobs:
|
|||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
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:
|
||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||||
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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user