diff --git a/wercker.yml b/wercker.yml index 92ab815..481bbd0 100644 --- a/wercker.yml +++ b/wercker.yml @@ -12,6 +12,19 @@ build: - script: name: "go test" code: "go test -v ./..." + - tcnksm/gox: + os: "linux" + arch: "amd64" + ldflags: "-X main.Version=$(git describe --tags)" + - script: + name: "archive" + code: | + DIST_DIR="${WERCKER_OUTPUT_DIR:?}/dist" + mkdir ${DIST_DIR:?} || true + cd ${WERCKER_OUTPUT_DIR:?}/pkg + find . -mindepth 1 -maxdepth 1 -type d | while read line; do tar zcfp ${DIST_DIR:?}/$line.tar.gz ${line:?} ; done + cd ${DIST_DIR:?} + md5sum * > MD5SUM deploy: steps: - tcnksm/ghr: