add buildpath to the downloader

This commit is contained in:
Greg Gauthier 2021-03-19 09:05:48 +00:00
parent 027d922916
commit 27a7d9f60b

View File

@ -10,8 +10,10 @@ pipelines:
- go mod tidy - go mod tidy
- go test -v - go test -v
- mkdir build - mkdir build
- go build -o build/gostations github.com/gmgauthier/gostations # go build -o build/gostations github.com/gmgauthier/gostations
- curl -X POST --user "${BITBUCKET_USERNAME}:${BITBUCKET_APP_PASSWORD}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"./build/gostations" - ./build.sh
- export BUILDPATH="build/$(uname)/gostations"
- curl -X POST --user "${BITBUCKET_USERNAME}:${BITBUCKET_APP_PASSWORD}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"${BUILDPATH}"
- step: - step:
name: Lint code name: Lint code