You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"On tag: $GIT_TAG, exporting IMAGE_TAG_SUFFIX as tag: $TAGGED"
44
+
export IMAGE_TAG_SUFFIX="$TAGGED"
45
+
52
46
else
53
-
echo"Not on a tag"
54
-
FINAL_SUFFIX="${SHA_SUFFIX}"
55
-
echo"Publishing suffix: $FINAL_SUFFIX"
47
+
SHORT_SHA="sha-$(git rev-parse --short HEAD)"
48
+
echo"Not on a tag, exporting IMAGE_TAG_SUFFIX as short SHA: $SHORT_SHA"
49
+
export IMAGE_TAG_SUFFIX="$SHORT_SHA"
56
50
fi
57
51
58
-
export IMAGE_TAG_SUFFIX="$FINAL_SUFFIX"
59
-
60
52
## Check if we are running in the context of a Terraform apply or plan, and set PUBLISH_LAMBDA_IMAGE accordingly. We only want to push images to ECR on apply, not on plan.
61
53
echo"Checking if ACTION is 'apply' to set PUBLISH_LAMBDA_IMAGE..."
62
54
if [ "$ACTION"="apply" ];then
@@ -89,7 +81,6 @@ if [ -n "${GHCR_LOGIN_USER:-}" ] && [ -n "${GHCR_LOGIN_TOKEN:-}" ]; then
0 commit comments