Skip to content

Commit

Permalink
Update deploy-containers.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gpproton committed Nov 21, 2023
1 parent 1a2325c commit 75af192
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 75af192

Please sign in to comment.