From ec745c709d00856b822239dbfdf494c2c7d1b872 Mon Sep 17 00:00:00 2001 From: rickyholland Date: Fri, 25 Mar 2022 16:58:58 +0000 Subject: [PATCH] feat: updated CircleCI config to also tag image with latest. 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 da714aa7598..1c717d5873c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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