Skip to content

Commit

Permalink
Merge branch 'master' of github.com:CircleCI-Public/circleci-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomorain committed Jun 26, 2018
2 parents 4973514 + 11790ed commit 0713e0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
key: v1-gometalinter-{{ checksum "/go/bin/gometalinter" }}
paths: [/go/bin/*]

deploy_github_release:
deploy:
working_directory: /go/src/github.com/circleci/circleci-cli
docker:
- image: circleci/golang:1.10
Expand All @@ -84,6 +84,8 @@ jobs:
working_directory: /go/src/github.com/CircleCI-Public/circleci-cli
steps:
- checkout
- setup_docker_engine:
docker_layer_caching: true
- restore_cache:
keys: [v2-goreleaser-]
- run:
Expand All @@ -101,32 +103,6 @@ jobs:
- run:
name: Release
command: goreleaser
- persist_to_workspace:
root: .
paths:
- dist
- save_cache:
key: v2-goreleaser-{{ checksum "~/goreleaser_amd64.deb" }}
paths: [~/goreleaser_amd64.deb]

deploy_docker:
docker:
- image: circleci/command-convenience:0.1.392-2e3ae33
environment:
NAME: circleci-cli
CONTAINER_ORG: circlecidx
DOCKERFILE_PATH: Dockerfile
DOCKER_REGISTRY: dockerhub
steps:
- setup_docker_engine:
docker_layer_caching: true
- attach_workspace:
at: ~/workspace
- run:
name: Build and push circleci-cli image
command: publish
- run:
name: Update the "latest" tag
command: publish
environment:
CONTAINER_VERSION: latest
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ builds:
- linux
goarch:
- amd64

dockers:
- image: user/repo

0 comments on commit 0713e0f

Please sign in to comment.