Skip to content

Commit

Permalink
feat: updated CircleCI config to also tag image with latest.
Browse files Browse the repository at this point in the history
Signed-off-by: rickyholland <[email protected]>
  • Loading branch information
RickyHolland committed Mar 25, 2022
1 parent 538b546 commit ec745c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@ jobs:
name: Build and push production Docker image
command: |
VERSION=$(git describe --tags `git rev-list --tags --max-count=1` | cut -c2-100)
docker build -t ${DOCKER_REPOSITORY}:${VERSION} .
docker build -t ${DOCKER_REPOSITORY}:${VERSION} -t ${DOCKER_REPOSITORY}:latest .
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker push ${DOCKER_REPOSITORY}:${VERSION}
docker push ${DOCKER_REPOSITORY}:latest
workflows:
version: 2
Expand Down

0 comments on commit ec745c7

Please sign in to comment.