Grab release SHA during build.
This commit is contained in:
parent
055aa688dc
commit
ee1173e19f
|
|
@ -10,7 +10,7 @@ go:
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
before_install:
|
before_install:
|
||||||
- mkdir -p $GOPATH/bin
|
- mkdir -p $GOPATH/bin
|
||||||
# This deploy is not used atm.
|
# This deploy key is not used atm.
|
||||||
- openssl aes-256-cbc -K $encrypted_9f3147001275_key -iv $encrypted_9f3147001275_iv -in .github_deploy_key.enc -out github_deploy_key -d
|
- openssl aes-256-cbc -K $encrypted_9f3147001275_key -iv $encrypted_9f3147001275_iv -in .github_deploy_key.enc -out github_deploy_key -d
|
||||||
- chmod 600 github_deploy_key
|
- chmod 600 github_deploy_key
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
|
|
@ -20,11 +20,13 @@ before_install:
|
||||||
- chmod +x $GOPATH/bin/dep
|
- chmod +x $GOPATH/bin/dep
|
||||||
# download super-linter: golangci-lint
|
# download super-linter: golangci-lint
|
||||||
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||||
|
- curl -sLo ./up.tgz https://github.com/davidnewhall/unifi-poller/archive/${TRAVIS_TAG}.tar.gz
|
||||||
install:
|
install:
|
||||||
- dep ensure
|
- dep ensure
|
||||||
- rvm $brew_ruby do gem install --no-document fpm
|
- rvm $brew_ruby do gem install --no-document fpm
|
||||||
script:
|
script:
|
||||||
- rvm $brew_ruby do make release
|
- rvm $brew_ruby do make release
|
||||||
|
- openssl dgst -sha256 ./up.tgz | tee release/${TRAVIS_TAG}.tar.gz.sha256
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue