From 81d520ab1f674db582e3e9c621fde8efe91db25c Mon Sep 17 00:00:00 2001 From: giulio-giunta <56529931+giulio-giunta@users.noreply.github.com> Date: Sun, 10 Dec 2023 10:36:41 +0000 Subject: [PATCH] Added configuration to tag image --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e6d8e08..70b43d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,6 +35,8 @@ jobs: auth: username: $DOCKER_USERNAME password: $DOCKER_PASSWORD + environment: + TAG: 0.1.<< pipeline.number >> steps: - checkout - setup_remote_docker: @@ -42,12 +44,12 @@ jobs: - run: name: Build geekzone/infra image command: | - docker build -t geekzone/infra . + docker build -t geekzone/infra:$TAG . - deploy: name: Push geekzone/infra image to Docker Hub command: | docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD - docker push geekzone/infra + docker push geekzone/infra:$TAG workflows: main-infra: