Skip to content

Commit 2c7fd17

Browse files
authored
feat: sha-short
1 parent 6672eba commit 2c7fd17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/shared-build-and-deploy.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@ jobs:
111111
with:
112112
inlineScript: |
113113
BRANCH_NAME="${{ inputs.branchName }}"
114+
SHA_SHORT="${{ needs.build.outputs.sha-short }}"
114115
REF_SHA="${{ inputs.branchName }}.${{ needs.build.outputs.sha-short }}"
115116
DEPLOYMENT_NAME="${REF_SHA////-}"
116117
echo "DEPLOYMENT_NAME=$DEPLOYMENT_NAME"
117118
118-
webServiceImage="${{ needs.build.outputs.image-name }}:sha-${{ needs.build.outputs.sha-short }}"
119+
webServiceImage="${{ needs.build.outputs.image-name }}:sha-$SHA_SHORT"
119120
echo "webServiceImage=$webServiceImage"
120121
121122
if [ "$BRANCH_NAME" == "main" ]; then
@@ -136,6 +137,7 @@ jobs:
136137
containerRegistryUsername=${{ github.actor }} \
137138
containerRegistryPassword=${{ secrets.PACKAGES_TOKEN }} \
138139
branchName="$BRANCH_NAME" \
140+
gitSha="$SHA_SHORT" \
139141
workspaceName='shared-log-analytics' \
140142
appInsightsName='shared-app-insights' \
141143
managedEnvironmentName='shared-env' \

0 commit comments

Comments
 (0)