Skip to content

Commit

Permalink
change docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
karan-batavia committed Jul 4, 2024
1 parent 18e7158 commit c410535
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ phases:
fi
- echo $VERSION
- echo $BRANCH_NAME
- |
COMMIT_HASH=$(git rev-parse --short HEAD)
TIMESTAMP=$(date +%Y%m%d%H%M%S)
DOCKER_TAG="${COMMIT_HASH}${TIMESTAMP}"
- |
if [[ $AWS_REGION = "eu-west-1" ]]
then
TAG_1=latest
else
TAG_1=${CODEBUILD_WEBHOOK_TRIGGER:7}
TAG_1=$DOCKER_TAG
fi
- TAG_2=$VERSION
- TAG_3=${CODEBUILD_WEBHOOK_HEAD_REF##*/}
- TAG_3=$DOCKER_TAG

build:
commands:
Expand Down

0 comments on commit c410535

Please sign in to comment.