Created
August 4, 2014 11:38
-
-
Save hatchan/bdb7becc68ae728ad58a to your computer and use it in GitHub Desktop.
Use golang executables as wercker build artifact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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