Skip to content

Commit

Permalink
Merge pull request #24 from drolx/main
Browse files Browse the repository at this point in the history
try adjustinf tag number
  • Loading branch information
gpproton authored Nov 21, 2023
2 parents 8ce53f1 + d72056f commit ca90927
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ 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: Set environment DOCKERHUB_IMAGE_TAGS and VERSION
run: |
echo "VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
_VERSION=${VERSION#v*}
_VERSION=${_TAG_NUMBER#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 ca90927

Please sign in to comment.