Skip to content

Commit

Permalink
Merge pull request #6429 from reactioncommerce/featre/docker-latest
Browse files Browse the repository at this point in the history
Updated CircleCI config to also tag image with latest.
  • Loading branch information
brent-hoover authored Mar 26, 2022
2 parents 538b546 + ec745c7 commit 14fb85e
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 14fb85e

Please sign in to comment.