Skip to content

Commit

Permalink
Update build-tag-push-ecr.sh merge_time in utc
Browse files Browse the repository at this point in the history
Update build-tag-push-ecr.sh merge_time in utc
PLAT-4232
  • Loading branch information
angold5 authored Apr 24, 2024
1 parent aa8da0d commit d9a7034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-tag-push-ecr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ fi
GIT_TAG=$(git describe --tags --first-parent --always)
# Cleaning the commit message to remove special characters
COMMIT_MSG=$(echo $COMMIT_MESSAGE | tr '\n' ' ' | tr -dc '[:alnum:]- ' | cut -c1-50)
# Gets merge time to main
MERGE_TIME=$(git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')
# Gets merge time to main - displaying it in UTC timezone
MERGE_TIME=$(TZ=UTC0 git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')

# Sanitise commit message and search for canary deployment instructions
MSG=$(echo $COMMIT_MESSAGE | tr '\n' ' ' | tr '[:upper:]' '[:lower:]')
Expand Down

0 comments on commit d9a7034

Please sign in to comment.