Attempt multi-os build
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
0a37bc7840
commit
8cc1b7e6a7
25
.drone.yml
25
.drone.yml
@ -17,7 +17,8 @@ steps:
|
|||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- name: Build binary
|
- name: Build binary (Linux)
|
||||||
|
depends_on: Clone skopeo source repository
|
||||||
image: bv11-cr01.bessems.eu/proxy/library/golang
|
image: bv11-cr01.bessems.eu/proxy/library/golang
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y go-md2man
|
- apt-get update && apt-get install -y go-md2man
|
||||||
@ -36,3 +37,25 @@ steps:
|
|||||||
GIT_APIKEY:
|
GIT_APIKEY:
|
||||||
from_secret: git_apikey
|
from_secret: git_apikey
|
||||||
GIT_USERNAME: djpbessems
|
GIT_USERNAME: djpbessems
|
||||||
|
- name: Build binary (Windows)
|
||||||
|
depends_on: Clone skopeo source repository
|
||||||
|
image: bv11-cr01.bessems.eu/proxy/library/golang
|
||||||
|
commands:
|
||||||
|
- apt-get update && apt-get install -y go-md2man
|
||||||
|
- |
|
||||||
|
GOOS=windows \
|
||||||
|
make \
|
||||||
|
BUILDTAGS=containers_image_openpgp \
|
||||||
|
GO_DYN_FLAGS=
|
||||||
|
- ls bin
|
||||||
|
# - bin/skopeo --version
|
||||||
|
# - |
|
||||||
|
# curl \
|
||||||
|
# --header "Authorization: token $GIT_APIKEY" \
|
||||||
|
# --upload-file bin/skopeo \
|
||||||
|
# https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GIT_APIKEY:
|
||||||
|
from_secret: git_apikey
|
||||||
|
GIT_USERNAME: djpbessems
|
||||||
|
Loading…
Reference in New Issue
Block a user