Skip to content

Commit

Permalink
fix docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
marefr committed Sep 10, 2019
1 parent 01f2835 commit 9f845e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,13 @@ jobs:
- checkout
- setup_remote_docker
- run: |
TAG=$(git describe --tags --abbrev=0)
TAG=$(git describe --tags --abbrev=0 | cut -d "v" -f 2)
echo "building ${TAG}"
docker build -t ${IMAGE_NAME}:${TAG} .
docker tag ${IMAGE_NAME}:${TAG} ${IMAGE_NAME}:latest
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
docker push IMAGE_NAME:${TAG}
docker push IMAGE_NAME:latest
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
docker push ${IMAGE_NAME}:${TAG}
docker push ${IMAGE_NAME}:latest
workflows:
version: 2
Expand Down

0 comments on commit 9f845e0

Please sign in to comment.