Skip to content

Commit

Permalink
Updating circleci config to push to milmove/docker-mvn:latest
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Oct 4, 2023
1 parent d7dbd9e commit f593943
Showing 1 changed file with 3 additions and 36 deletions.
39 changes: 3 additions & 36 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,9 @@ jobs:
name: Release container
command: |
shopt -s extglob
for tag in $CIRCLE_SHA1 ${CIRCLE_BRANCH//+([^A-Za-z0-9-.])/-}; do
# latest
docker tag milmove/circleci-docker milmove/circleci-docker:$tag
docker push milmove/circleci-docker:$tag
# milmove-app
docker tag milmove/circleci-docker:milmove-app milmove/circleci-docker:milmove-app-$tag
docker push milmove/circleci-docker:milmove-app-$tag
# milmove-cypress
docker tag milmove/circleci-docker:milmove-cypress milmove/circleci-docker:milmove-cypress-$tag
docker push milmove/circleci-docker:milmove-cypress-$tag
# milmove-infra-tf112
docker tag milmove/circleci-docker:milmove-infra-tf112 milmove/circleci-docker:milmove-infra-tf112-$tag
docker push milmove/circleci-docker:milmove-infra-tf112-$tag
# milmove-infra-tf132
docker tag milmove/circleci-docker:milmove-infra-tf132 milmove/circleci-docker:milmove-infra-tf132-$tag
docker push milmove/circleci-docker:milmove-infra-tf132-$tag
# milmove-atlantis
docker tag milmove/circleci-docker:milmove-atlantis milmove/circleci-docker:milmove-atlantis-$tag
docker push milmove/circleci-docker:milmove-atlantis-$tag
done
# push default tags on main
if [[ $CIRCLE_BRANCH = main ]]; then
docker push milmove/circleci-docker
docker push milmove/circleci-docker:milmove-app
docker push milmove/circleci-docker:milmove-cypress
docker push milmove/circleci-docker:milmove-infra-tf112
docker push milmove/circleci-docker:milmove-infra-tf132
docker push milmove/circleci-docker:milmove-atlantis
fi
# latest
docker tag milmove/docker-mvn milmove/docker-mvn:latest
docker push milmove/docker-mvn:latest
workflows:
version: 2
build-containers:
Expand Down

0 comments on commit f593943

Please sign in to comment.