update
This commit is contained in:
parent
e7b951bfb4
commit
6de68b3298
1 changed files with 1 additions and 6 deletions
|
@ -30,12 +30,7 @@ jobs:
|
||||||
|
|
||||||
- name: Get tags from GitLab repository
|
- name: Get tags from GitLab repository
|
||||||
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) && echo "Latest version is: $latest_tag"
|
||||||
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"
|
|
||||||
|
|
||||||
- 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue