Skip to content

Commit

Permalink
fix circle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 10, 2024
1 parent 68d4a7d commit 09b575e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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: /.*/



Expand Down

0 comments on commit 09b575e

Please sign in to comment.