Skip to content

Commit

Permalink
Merge pull request #309 from DigitalSlideArchive/separate-common-dock…
Browse files Browse the repository at this point in the history
…er-pub

Separate out publishing common docker
  • Loading branch information
manthey authored Dec 20, 2023
2 parents d60595a + 2ba8bfc commit 5432d6b
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -380,23 +380,32 @@ jobs:
steps:
- checkout
- usedockers
- run:
name: Load archived common docker image
command: |
docker load -i /tmp/workspace/dsa_common.tar
- run:
name: Publish images to Docker Hub
command: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push dsarchive/dsa_worker:latest
docker push dsarchive/dsa_girder:latest
docker push dsarchive/dsa_common:latest
if [[ $CIRCLE_TAG =~ ^v.*$ ]]; then
docker tag dsarchive/dsa_worker:latest "dsarchive/dsa_worker:$CIRCLE_TAG"
docker tag dsarchive/dsa_girder:latest "dsarchive/dsa_girder:$CIRCLE_TAG"
docker tag dsarchive/dsa_common:latest "dsarchive/dsa_common:$CIRCLE_TAG"
docker push "dsarchive/dsa_worker:$CIRCLE_TAG"
docker push "dsarchive/dsa_girder:$CIRCLE_TAG"
fi
publish-docker-common:
working_directory: ~/project
machine:
image: ubuntu-2204:2023.07.2
steps:
- checkout
- usecommondocker
- run:
name: Publish images to Docker Hub
command: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push dsarchive/dsa_common:latest
if [[ $CIRCLE_TAG =~ ^v.*$ ]]; then
docker tag dsarchive/dsa_common:latest "dsarchive/dsa_common:$CIRCLE_TAG"
docker push "dsarchive/dsa_common:$CIRCLE_TAG"
fi
docs:
Expand Down Expand Up @@ -535,6 +544,17 @@ workflows:
- test-cli
- test-girder-build
- test-histomicsui
filters:
tags:
only: /^v.*/
branches:
only:
- master
- publish-docker-common:
requires:
# - test-cli
# - test-girder-build
# - test-histomicsui
- docker-compose
- test-cli-common
- test-girder-build-common
Expand Down Expand Up @@ -600,6 +620,11 @@ workflows:
- test-cli
- test-girder-build
- test-histomicsui
- publish-docker-common:
requires:
# - test-cli
# - test-girder-build
# - test-histomicsui
- docker-compose
- test-cli-common
- test-girder-build-common
Expand Down

0 comments on commit 5432d6b

Please sign in to comment.