From 9f9313209f15d619a1480273a6a9b7f8bf7afc19 Mon Sep 17 00:00:00 2001 From: rickyholland Date: Mon, 28 Mar 2022 16:31:32 +0100 Subject: [PATCH] feat: added latest tag to docker images Signed-off-by: rickyholland --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3c25735fe..6756af014 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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}"