This commit is contained in:
brooke 2025-03-08 18:58:38 -05:00
parent e7b951bfb4
commit 6de68b3298

View file

@ -30,12 +30,7 @@ jobs:
- name: Get tags from GitLab repository
id: get_tags
run: |
tags=$(curl -s https://framagit.org/api/v4/projects/74246/repository/tags)
echo "API response: $tags"
latest_tag=$(echo $tags | jq -r '.[0].name')
echo "Latest tag: $latest_tag"
echo "::set-output name=latest_tag::$latest_tag"
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) && echo "Latest version is: $latest_tag"
- name: Build and Push with Latest Tag
uses: docker/build-push-action@v4