Skip to content

Commit

Permalink
Build and push to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomorain committed Jun 26, 2018
1 parent f669c45 commit aa3a976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
13 changes: 6 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ workflows:
- test
- coverage
- lint
- deploy_github_release:
- deploy:
requires:
- test
- coverage
- lint
filters:
branches:
only: master
- deploy_docker:
requires:
- deploy_github_release
filters:
branches:
only: master

jobs:
test:
Expand Down Expand Up @@ -103,6 +97,11 @@ jobs:
- run:
name: Release
command: goreleaser
- run:
name: Build Docker Image
command: |
docker build -t circlecidx/circleci-cli:$0.1.$CIRCLE_BUILD_NUM .
docker push company/app:$CIRCLE_BRANCH
- save_cache:
key: v2-goreleaser-{{ checksum "~/goreleaser_amd64.deb" }}
paths: [~/goreleaser_amd64.deb]
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ builds:
- linux
goarch:
- amd64

dockers:
- image: user/repo

0 comments on commit aa3a976

Please sign in to comment.