Skip to content

Commit

Permalink
Merge pull request #26 from drolx/main
Browse files Browse the repository at this point in the history
Update deploy-containers.yml
  • Loading branch information
gpproton authored Nov 21, 2023
2 parents 4b0c79f + 75af192 commit 104d4c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - 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: Get tag version
run: echo "_VERSION=`echo ${PATCH#v*}`" >> $GITHUB_ENV

- name: Set environment DOCKERHUB_IMAGE_TAGS and VERSION
run: |
_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 104d4c3

Please sign in to comment.