From 0a99e878a16dbe4e0ef5fef5afb0f4072ea2bd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anthony=20Qu=C3=A9r=C3=A9?= <47711333+Anthony-Jhoiro@users.noreply.github.com> Date: Tue, 12 Oct 2021 19:47:22 +0200 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6c2657b..b5acc78 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,5 @@ +version: 2.1 + globals: credentials: dockerhub_username: &dockerhub_username anthonyjhoiro @@ -40,14 +42,12 @@ commands: destination: type: string default: "" - - parallelism: << parameters.destination >> steps: - run: docker tag << parameters.baseimage >> << parameters.destination >> - run: docker push << parameters.destination >> -version: 2.1 + jobs: install: docker: @@ -150,8 +150,10 @@ jobs: - main - << pipeline.git.branch >> steps: - - pushdockerhub: $DOCKERHUB_LOGIN/$DOCKERHUB_REPOSITORY:${CIRCLE_BUILD_NUM} - - pushdockerhub: $DOCKERHUB_LOGIN/$DOCKERHUB_REPOSITORY:latest + - pushdockerhub: + destination: $DOCKERHUB_LOGIN/$DOCKERHUB_REPOSITORY:${CIRCLE_BUILD_NUM} + - pushdockerhub: + destination: $DOCKERHUB_LOGIN/$DOCKERHUB_REPOSITORY:latest - when: condition: