diff --git a/.drone.yml b/.drone.yml index 5ed4e8e..a8f35c0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: image: golang commands: - go get github.com/gobuffalo/packr/v2/packr2 - - echo $(ls /go/bin) + - go build -o packr2 github.com/gobuffalo/packr/v2/packr2 - name: build image: golang commands: @@ -39,6 +39,7 @@ steps: image: golang commands: - go get github.com/gobuffalo/packr/v2/packr2 + - go build -o packr2 github.com/gobuffalo/packr/v2/packr2 - name: build image: golang commands: @@ -69,6 +70,7 @@ steps: image: golang commands: - go get github.com/gobuffalo/packr/v2/packr2 + - go build -o packr2 github.com/gobuffalo/packr/v2/packr2 - name: build image: golang commands: diff --git a/ci-build.sh b/ci-build.sh index 02d087b..17edc46 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -22,12 +22,11 @@ build() { fi echo "Running packr2" - if [[ -f ${GOPATH}/bin/packr2 ]] + if [[ -f packr2 ]] then - ${GOPATH}/bin/packr2 + packr2 else echo "packr2 binary not found" - echo $(ls /go/bin) exit 1 fi