add buildpath and platform to the downloader

This commit is contained in:
Greg Gauthier 2021-03-19 09:12:31 +00:00
parent 00c8b76fe0
commit 8a78251c05

View File

@ -10,11 +10,9 @@ pipelines:
- go mod tidy
- go test -v
- mkdir build
# go build -o build/gostations github.com/gmgauthier/gostations
- echo "Building for $(uname)"
- ./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}"
- curl -X POST --user "${BITBUCKET_USERNAME}:${BITBUCKET_APP_PASSWORD}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads/$(uname)" --form files=@"${BUILDPATH}"
- step:
name: Lint code