Skip to content

Instantly share code, notes, and snippets.

@hatchan
Created August 4, 2014 11:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatchan/bdb7becc68ae728ad58a to your computer and use it in GitHub Desktop.
Save hatchan/bdb7becc68ae728ad58a to your computer and use it in GitHub Desktop.
Use golang executables as wercker build artifact
box: wercker/golang
build:
steps:
- wercker/setup-go-workspace
- script:
name: get dependencies
code: go get -v ./...
- script:
name: build executable
code: go build -a -v ./...
- script:
name: move executable
code: mv $GOPATH/bin/* $WERCKER_OUTPUT_DIR
deploy:
steps:
- script:
name: list files
code: ls -l ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment