Skip to content

Commit

Permalink
Merge pull request #54 from kennyd3d/workflow-dropdown
Browse files Browse the repository at this point in the history
fix sha
  • Loading branch information
kennyd3d authored Aug 26, 2024
2 parents 9bd1806 + 49da9ca commit b99577a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b99577a

Please sign in to comment.