Skip to content

Commit

Permalink
tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Buetikofer committed Jan 14, 2022
1 parent 693d903 commit e4153f5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ jobs:
- run:
name: Docker Push the image to the Docker registry
command: docker push ricardoag/$CIRCLE_PROJECT_REPONAME:$CIRCLE_BRANCH
# - run: make docker DOCKER_REPO=ricardoag/bunnycdn_exporter
# - run: docker images
# - run: make docker-publish DOCKER_REPO=ricardoag/bunnycdn_exporter

docker_hub_release_tags:
executor: golang
Expand All @@ -86,15 +83,15 @@ jobs:
path: .tarballs
destination: releases
- run: ln -s .build/linux-amd64/bunnycdn_exporter bunnycdn_exporter
- run: make docker DOCKER_IMAGE_TAG=$CIRCLE_TAG DOCKER_REPO=ricardoag/bunnycdn_exporter
- run: make docker DOCKER_IMAGE_TAG=$CIRCLE_TAG DOCKER_REPO=ricardoag/$CIRCLE_PROJECT_REPONAME
- run:
name: Login to Docker Hub
command: echo ${DOCKER_HUB_PASSWORD} | docker login -u ${DOCKER_HUB_USERNAME} --password-stdin
- run: |
if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then
make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" DOCKER_REPO=ricardoag/bunnycdn_exporter
make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" DOCKER_REPO=ricardoag/$CIRCLE_PROJECT_REPONAME
fi
- run: make docker-publish DOCKER_REPO=ricardoag/bunnycdn_exporter
- run: make docker-publish DOCKER_REPO=ricardoag/$CIRCLE_PROJECT_REPONAME

workflows:
version: 2
Expand Down

0 comments on commit e4153f5

Please sign in to comment.