This commit is contained in:
parent
1e331089b4
commit
97b708515e
12
.drone.yml
12
.drone.yml
@ -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:
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user