Skip to content

Commit

Permalink
Use custom image
Browse files Browse the repository at this point in the history
  • Loading branch information
darrikonn committed Dec 7, 2019
1 parent 4661a63 commit 6c5f13e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ workflows:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/

executors:
xcgo:
description: GoReleaser xcgo build image
parameters:
version:
description: Go version to use
type: string
default: 'latest'
docker:
- image: darrikonn/goreleaser-xcgo:<<parameters.version>>
go:
description: Go build image
parameters:
Expand Down Expand Up @@ -63,11 +72,9 @@ jobs:

release:
executor:
name: go
version: '1.13'
name: xcgo
steps:
- checkout
- run:
name: 'Create releases with GoReleaser'
command: |
docker run -e GITHUB_TOKEN=$GITHUB_TOKEN --rm --privileged -v $CIRCLE_WORKING_DIRECTORY:/go/src/github.com/darrikonn/cheat -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/darrikonn/cheat darrikonn/goreleaser-xcgo goreleaser --rm-dist
command: goreleaser --rm-dist
3 changes: 1 addition & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ changelog:
brew:
github:
owner: darrikonn
name: homebrew-tap
folder: Formula
name: homebrew-formulae
homepage: https://github.com/darrikonn/cheat
description: Secure, email-like messaging for blockchain addresses and accounts
test: |
Expand Down

0 comments on commit 6c5f13e

Please sign in to comment.