From beaa2de473471622be6810cef25e81cf4268b20a Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 23 Jun 2020 14:38:23 -0500 Subject: [PATCH] fixed relase version --- .github/workflows/deploy-RELEASE.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-RELEASE.yml b/.github/workflows/deploy-RELEASE.yml index 27a3a4a4..4a3a1d2a 100644 --- a/.github/workflows/deploy-RELEASE.yml +++ b/.github/workflows/deploy-RELEASE.yml @@ -37,6 +37,13 @@ jobs: - name: Checkout Code uses: actions/checkout@v2 + ########################## + # Get the Relase version # + ########################## + - name: Extract Release Version + shell: bash + run: echo "::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF/refs\/tags\//})" + ################################### # Run Deploy script for Dockerhub # ################################### @@ -46,7 +53,7 @@ jobs: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} IMAGE_REPO: github/super-linter - IMAGE_VERSION: ${{ github.ref }} + IMAGE_VERSION: ${RELEASE_VERSION} DOCKERFILE_PATH: Dockerfile REGISTRY: Docker shell: bash @@ -61,7 +68,7 @@ jobs: DOCKER_USERNAME: ${{ secrets.GPR_USERNAME }} DOCKER_PASSWORD: ${{ secrets.GPR_PASSWORD }} IMAGE_REPO: github/super-linter - IMAGE_VERSION: ${{ github.ref }} + IMAGE_VERSION: ${RELEASE_VERSION} DOCKERFILE_PATH: Dockerfile REGISTRY: GPR shell: bash