Skip to content

Commit

Permalink
[CircleCI] Tag latest and master during release; tag only master for …
Browse files Browse the repository at this point in the history
…master branch build
  • Loading branch information
vadyalex committed Jan 27, 2021
1 parent 8815d27 commit d188654
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,9 @@ jobs:
name: Build Docker Container
command: docker build -t vadyalex/ordnerd:master .

- run:
name: Tag latest
command: docker tag vadyalex/ordnerd:master

- run:
name: Push to Docker Hub
command: |
docker push vadyalex/ordnerd:master
command: docker push vadyalex/ordnerd:master


push-release:
Expand Down Expand Up @@ -108,7 +103,11 @@ jobs:

- run:
name: Tag latest
command: docker tag vadyalex/ordnerd:${CIRCLE_TAG} vadyalex/ordnerd:master vadyalex/ordnerd:latest
command: docker tag vadyalex/ordnerd:${CIRCLE_TAG} vadyalex/ordnerd:latest

- run:
name: Tag master
command: docker tag vadyalex/ordnerd:${CIRCLE_TAG} vadyalex/ordnerd:master

- run:
name: Push to Docker Hub
Expand Down

0 comments on commit d188654

Please sign in to comment.