Skip to content

Commit

Permalink
feat: added latest tag to docker images
Browse files Browse the repository at this point in the history
Signed-off-by: rickyholland <rickyholland@hotmail.co.uk>
  • Loading branch information
RickyHolland committed Mar 28, 2022
1 parent bf6b76d commit 9f93132
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 @@ -100,9 +100,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
- webhook/notify:
endpoint: "${GITOPS_PR_WEBHOOK}"

Expand Down

0 comments on commit 9f93132

Please sign in to comment.