Skip to content

Commit

Permalink
Remove CircleCI deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Sep 19, 2024
1 parent 1e2d1cb commit f61ca37
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,33 +78,6 @@ jobs:
key: v1-{{ .Branch }}-{{epoch}}
paths:
- docker-cache/docker.tar
deploy:
docker:
- image: cimg/deploy:2024.03.1
steps:
- setup_remote_docker
- restore_cache:
key: v1-{{.Branch}}
- run:
name: Restore Docker image cache
command: docker load -i docker-cache/docker.tar

- run:
name: Deploy to Dockerhub
command: |
# deploy master
if [ "${CIRCLE_BRANCH}" == "main" ]; then
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag app:build ${DOCKERHUB_REPO}:latest
docker push ${DOCKERHUB_REPO}:latest
elif [ ! -z "${CIRCLE_TAG}" ]; then
# deploy a release tag...
docker login -u $DOCKER_USER -p $DOCKER_PASS
echo "${DOCKERHUB_REPO}:${CIRCLE_TAG}"
docker tag app:build "${DOCKERHUB_REPO}:${CIRCLE_TAG}"
docker images
docker push "${DOCKERHUB_REPO}:${CIRCLE_TAG}"
fi

workflows:
version: 2
Expand All @@ -127,12 +100,3 @@ workflows:
tags:
only: /.*/

- deploy:
requires:
- test
- build
filters:
tags:
only: /.*/
branches:
only: main

0 comments on commit f61ca37

Please sign in to comment.