diff --git a/.github/workflows/docker-deployment.yaml b/.github/workflows/docker-deployment.yaml index f2ecd59fe..2a59266b7 100644 --- a/.github/workflows/docker-deployment.yaml +++ b/.github/workflows/docker-deployment.yaml @@ -35,9 +35,14 @@ jobs: username: ${{ secrets.IOTALEDGER_DOCKER_USERNAME }} password: ${{ secrets.IOTALEDGER_DOCKER_PASSWORD }} - - name: Get the version - id: get_version - run: echo "VERSION=$(git describe --tags)" >> $GITHUB_ENV + #- name: Get the version + # id: get_version + # run: echo "VERSION=$(git describe --tags)" >> $GITHUB_ENV + + - name: Get the short commit hash + run: | + COMMIT_HASH=$(git rev-parse --short HEAD) + echo "VERSION=$COMMIT_HASH" >> $GITHUB_ENV - name: Set up Environment Variable run: echo "DEPLOY_ENV=${{ github.event.inputs.environment }}" >> $GITHUB_ENV