From 8a78251c05aa729f0436a75942b8ce924b292e0c Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 19 Mar 2021 09:12:31 +0000 Subject: [PATCH] add buildpath and platform to the downloader --- bitbucket-pipelines.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index b3ac0c4..23ae39f 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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