Skip to content

Commit

Permalink
Merge pull request #78 from CircleCI-Public/docker-latest-tag
Browse files Browse the repository at this point in the history
Also push a latest tag for the docker image
  • Loading branch information
Zachary Scott authored Aug 30, 2018
2 parents 4a9a3c9 + 7c2e613 commit 04b7617
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ jobs:
- run:
name: Build Docker Image
command: |
docker build -t circleci/circleci-cli:0.1.$CIRCLE_BUILD_NUM .
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
docker build -t circleci/circleci-cli:0.1.$CIRCLE_BUILD_NUM .
docker push circleci/circleci-cli:0.1.$CIRCLE_BUILD_NUM
docker tag circleci/circleci-cli:0.1.$CIRCLE_BUILD_NUM circleci/circleci-cli:latest
docker push circleci/circleci-cli:latest
- save_cache:
key: v2-goreleaser-{{ checksum "~/goreleaser_amd64.deb" }}
paths: [~/goreleaser_amd64.deb]
Expand Down

0 comments on commit 04b7617

Please sign in to comment.