Skip to content

Commit 9f93132

Browse files
committed
feat: added latest tag to docker images
Signed-off-by: rickyholland <[email protected]>
1 parent bf6b76d commit 9f93132

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ jobs:
100100
name: Build and push production Docker image
101101
command: |
102102
VERSION=$(git describe --tags `git rev-list --tags --max-count=1` | cut -c2-100)
103-
docker build -t ${DOCKER_REPOSITORY}:${VERSION} .
103+
docker build -t ${DOCKER_REPOSITORY}:${VERSION} -t ${DOCKER_REPOSITORY}:latest .
104104
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
105105
docker push ${DOCKER_REPOSITORY}:${VERSION}
106+
docker push ${DOCKER_REPOSITORY}:latest
106107
- webhook/notify:
107108
endpoint: "${GITOPS_PR_WEBHOOK}"
108109

0 commit comments

Comments
 (0)