Skip to content

Commit

Permalink
update promote workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Maboh Christopher committed Oct 23, 2024
1 parent dd9e9b5 commit 11e4f8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ jobs:
echo "Getting the manifest of the image tagged main-$SHA_SHORT"
MANIFEST="$(curl -sS -H "Authorization: Basic $TOKEN" -H "Accept: $CONTENT_TYPE" "https://$ECR_REPO_DOMAIN/v2/$ECR_REPO/manifests/main-$SHA_SHORT")"
if [ "${{ inputs.environment }}" == "prod_test" ]; then
SHA_TAG="ab2d-prod-test-$SHA_SHORT"
else
SHA_TAG="ab2d-$DEPLOYMENT_ENV-$SHA_SHORT"
fi
echo "Adding the $SHA_TAG tag to main-$SHA_SHORT image"
curl -sS -X PUT -H "Authorization: Basic $TOKEN" -H "Content-Type: $CONTENT_TYPE" -d "$MANIFEST" "https://$ECR_REPO_DOMAIN/v2/$ECR_REPO/manifests/$SHA_TAG"
Expand Down

0 comments on commit 11e4f8f

Please sign in to comment.