update build process
This commit is contained in:
parent
9a3c36eef1
commit
13e54e0108
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ jobs:
|
|||
id: get_tags
|
||||
run: |
|
||||
TAGS=$(curl --header "PRIVATE-TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }}" "https://gitlab.com/api/v4/projects/liberaforms%2Fliberaforms/repository/tags" | jq -r '.[].name')
|
||||
echo "::set-output name=tags::$TAGS"
|
||||
echo "tags=$TAGS" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Filter out RC and dev tags and get the latest version
|
||||
id: filter_tags
|
||||
|
@ -38,8 +38,8 @@ jobs:
|
|||
TAGS="${{ steps.get_tags.outputs.tags }}"
|
||||
FILTERED_TAGS=$(echo "$TAGS" | grep -Ev 'RC[0-9]$|dev' | sort -V | tail -n 1)
|
||||
echo "Latest tag excluding RC and dev: $FILTERED_TAGS"
|
||||
echo "::set-output name=latest_tag::$FILTERED_TAGS"
|
||||
|
||||
echo "latest_tag=$FILTERED_TAGS" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and Push with Latest Tag
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
|
|
Loading…
Add table
Reference in a new issue