update
This commit is contained in:
parent
6d46f48fb5
commit
c71fe1511e
1 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,12 @@ jobs:
|
||||||
id: get_tags
|
id: get_tags
|
||||||
run: |
|
run: |
|
||||||
latest_tag=$(curl -s https://framagit.org/api/v4/projects/74246/repository/tags | grep -o -E 'v[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
|
latest_tag=$(curl -s https://framagit.org/api/v4/projects/74246/repository/tags | grep -o -E 'v[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
|
||||||
|
if [ -z "$latest_tag" ]; then
|
||||||
|
echo "No valid tag found. Exiting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "Latest version is $latest_tag"
|
echo "Latest version is $latest_tag"
|
||||||
|
echo "latest_tag=$latest_tag" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and Push with Latest Tag
|
- name: Build and Push with Latest Tag
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
|
@ -42,4 +47,4 @@ jobs:
|
||||||
file: ./aktivisda/server/Dockerfile
|
file: ./aktivisda/server/Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: fung.uy/mirrors/aktivisda:${{ steps.get_tags.outputs.latest_tag }}
|
tags: fung.uy/mirrors/aktivisda:${{ env.latest_tag }}
|
Loading…
Add table
Reference in a new issue