From 49da9ca1519538adcdd3d10c1e68aef83926db7f Mon Sep 17 00:00:00 2001 From: kennyd3d Date: Mon, 26 Aug 2024 09:22:05 -0700 Subject: [PATCH] fix sha --- .github/workflows/dev.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index be2e4fb..43e6ae7 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -52,20 +52,20 @@ jobs: fi TAG_COMMIT_SHA=$(git rev-list -n 1 $TAG_NAME) + SHA_SHORT=$(echo $TAG_COMMIT_SHA | cut -c1-7) + echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV echo "TAG_COMMIT_SHA=$TAG_COMMIT_SHA" >> $GITHUB_ENV - echo "SHA_SHORT=$(echo $TAG_COMMIT_SHA | cut -c1-7)" >> $GITHUB_ENV + echo "SHA_SHORT=$SHA_SHORT" >> $GITHUB_ENV - # Print values directly using shell variables - IMAGE_DEV="docker.artifactory.d3d.io/${{ env.ARTIFACT_NAME }}:$SHA_SHORT" >> $GITHUB_ENV - IMAGE_QA="docker.artifactory.d3d.io/${{ env.ARTIFACT_NAME }}:$TAG_NAME" >> $GITHUB_ENV + IMAGE_DEV="docker.artifactory.d3d.io/${{ env.ARTIFACT_NAME }}:$SHA_SHORT" + IMAGE_QA="docker.artifactory.d3d.io/${{ env.ARTIFACT_NAME }}:$TAG_NAME" echo "Tag Name: $TAG_NAME" echo "Full SHA: $TAG_COMMIT_SHA" echo "Short SHA: $SHA_SHORT" echo "DEV: $IMAGE_DEV" echo "QA: $IMAGE_QA" - build_test_and_deploy_dev: runs-on: ubuntu-latest