From 27a7d9f60becb74a9cb9d3034f98c6821e79e24e Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 19 Mar 2021 09:05:48 +0000 Subject: [PATCH] add buildpath to the downloader --- bitbucket-pipelines.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 01c3c2b..fb6531a 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -10,8 +10,10 @@ pipelines: - go mod tidy - go test -v - mkdir build - - 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" + # go build -o build/gostations github.com/gmgauthier/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: name: Lint code