Skip to content

Commit

Permalink
use different version extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
gpproton committed Nov 21, 2023
1 parent d72056f commit 1a2325c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get tag version
run: echo "_TAG_NUMBER=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
# - name: Get tag version
# run: echo "_TAG_NUMBER=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV

- name: Extract version from tag
uses: damienaicheh/extract-version-from-tag-action@v1.1.0

- name: Set environment DOCKERHUB_IMAGE_TAGS and VERSION
run: |
_VERSION=${_TAG_NUMBER#v*}
_VERSION=${PATCH#v*}
_MAJOR_VERSION=${_VERSION%.*}
_DOCKERHUB_IMAGE_TAGS="$DOCKERHUB_REPOSITORY:$_VERSION-${{ matrix.os }}"
_DOCKERHUB_IMAGE_TAGS+=",$DOCKERHUB_REPOSITORY:$_MAJOR_VERSION-${{ matrix.os }}"
Expand Down

0 comments on commit 1a2325c

Please sign in to comment.