updated ci scripts
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Paul 2020-05-09 19:39:21 +02:00
parent 1e331089b4
commit 97b708515e
2 changed files with 15 additions and 3 deletions

View File

@ -4,6 +4,10 @@ type: docker
name: default-linux-amd64
steps:
- name: packr2
image: golang
commands:
- go get github.com/gobuffalo/packr/v2/packr2
- name: build
image: golang
commands:
@ -30,6 +34,10 @@ type: docker
name: default-linux-arm64
steps:
- name: packr2
image: golang
commands:
- go get github.com/gobuffalo/packr/v2/packr2
- name: build
image: golang
commands:
@ -56,6 +64,10 @@ type: docker
name: default-netbsd-amd64
steps:
- name: packr2
image: golang
commands:
- go get github.com/gobuffalo/packr/v2/packr2
- name: build
image: golang
commands:

View File

@ -23,11 +23,11 @@ build() {
go get github.com/gobuffalo/packr/v2/packr2
if [[ ! -f ${GOPATH}/bin/packr2 ]]
if [[ -f ${GOPATH}/bin/packr2 ]]
then
${GOPATH}/bin/${GOOS}_${GOARCH}/packr2
else
${GOPATH}/bin/packr2
else
exit 1
fi
go build -o ${PROJECTNAME} ${GOOPTIONS} ${SRCFILES}