Skip to content

Commit

Permalink
Merge pull request #101 from ainoya/improve-wercker-release
Browse files Browse the repository at this point in the history
Improve wercker release flow
  • Loading branch information
takahi-i committed Mar 30, 2015
2 parents 495acb0 + add18ef commit e681756
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions wercker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
box: motemen/golang-goxc@0.1.0
box: ainoya/golang-goxc@0.2.0
build:
steps:
- script:
Expand All @@ -10,17 +10,13 @@ build:
code: |
. ./build
goxc -tasks='xc archive' -n walter -bc='linux,!arm windows darwin' -main-dirs-exclude='gopath,Godeps,tests' -d ${WERCKER_OUTPUT_DIR} -build-ldflags "-X ${REPO_PATH}/version.Version \"$(git describe --tags --always --dirty)\""
- script:
name: output release tag
code: |
git describe --tags --exact --match 'v*' > $WERCKER_OUTPUT_DIR/.release_tag || true
deploy:
steps:
# reference: https://github.com/motemen/ghq/blob/beee539aead9c3940a0c4706357c5753999f6c85/wercker.yml
- script:
name: restore release tag
name: fetch release tag
code: |
export RELEASE_TAG=$(cat .release_tag)
export RELEASE_TAG=$(curl https://api.github.com/repos/walter-cd/walter/tags | jq -r ".[] | select(.commit.sha == \"${WERCKER_GIT_COMMIT}\") | .name")
- wercker/github-create-release:
token: $GITHUB_TOKEN
tag: $RELEASE_TAG
Expand Down

0 comments on commit e681756

Please sign in to comment.