From 09b575e9d3fa9b2d08fa23bf326fb3e0b485a8cd Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Wed, 10 Jul 2024 19:44:08 +0200 Subject: [PATCH] fix circle ci --- .circleci/config.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 80344b9..d0f234d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,12 +121,13 @@ jobs: user_name=cpplab repo_name=$(echo "${CIRCLE_PROJECT_REPONAME}" | tr '[:upper:]' '[:lower:]') if [[ -n "${DOCKER_TOKEN}" ]]; then - echo "${DOCKER_TOKEN}" | docker login -u "${DOCKER_USER}" --password-stdin + echo "${DOCKER_TOKEN}" | docker login -u remigau --password-stdin : "Pushing to DockerHub ${user_name}/${repo_name}:unstable" docker tag "${user_name}/${repo_name}" "${user_name}/${repo_name}:unstable" docker push "${user_name}/${repo_name}:unstable" if [[ -n "${CIRCLE_TAG}" ]]; then : "Pushing to DockerHub ${user_name}/${repo_name}:${CIRCLE_TAG}" + docker tag "${user_name}/${repo_name}" "${user_name}/${repo_name}:latest" docker push "${user_name}/${repo_name}:latest" docker tag "${user_name}/${repo_name}" "${user_name}/${repo_name}:${CIRCLE_TAG}" docker push "${user_name}/${repo_name}:${CIRCLE_TAG}" @@ -141,21 +142,16 @@ workflows: build-test-deploy: jobs: - build - - get_data - test: requires: - build - get_data - - deploy: context: - DOCKER_HUB requires: - test - filters: - tags: - only: /.*/