Skip to content

Commit

Permalink
publish image
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Buetikofer committed Jan 14, 2022
1 parent 3da681b commit 22af198
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,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/$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/$CIRCLE_PROJECT_REPONAME
fi
- run: make docker-publish DOCKER_REPO=ricardoag/$CIRCLE_PROJECT_REPONAME

- run:
name: Build the Docker image
command: docker build -t ricardoag/$CIRCLE_PROJECT_REPONAME:$CIRCLE_TAG .
- run:
name: Docker Push the image to the Docker registry
command: docker push ricardoag/$CIRCLE_PROJECT_REPONAME:$CIRCLE_TAG
workflows:
version: 2
bunnycdn_exporter:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.2.2

0 comments on commit 22af198

Please sign in to comment.