Created
June 18, 2016 03:56
-
-
Save youyo/17d3ba013e3172f403aaed518d0bdaac to your computer and use it in GitHub Desktop.
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
phase1: | |
box: | |
id: golang:1.6.2-alpine | |
cmd: /bin/sh | |
steps: | |
- wercker/setup-go-workspace: | |
package-dir: github.com/youyo/wercker-test | |
- script: | |
name: Build | |
code: |- | |
go build | |
mv wercker-test ${WERCKER_OUTPUT_DIR}/wercker-test | |
phase2: | |
box: | |
id: golang:1.6.2-alpine | |
cmd: /bin/sh | |
steps: | |
- script: | |
name: Deploy | |
code: |- | |
ghr -t ${GITHUB_TOKEN} -u youyo -r wercker-test --replace `grep -w 'const Version string' version.go | awk -F '"' '{print "v"$2}'` wercker-test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment