From d72056f01af80809b426c3b0afc620c529e04e05 Mon Sep 17 00:00:00 2001 From: radioActive DROID Date: Tue, 21 Nov 2023 07:45:36 +0100 Subject: [PATCH] try adjustinf tag number --- .github/workflows/deploy-containers.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-containers.yml b/.github/workflows/deploy-containers.yml index bb016c1e1c4..4eee34085b2 100644 --- a/.github/workflows/deploy-containers.yml +++ b/.github/workflows/deploy-containers.yml @@ -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 }}"