Upload to new package registry
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e24ff7f963
commit
1dabfb86b7
14
.drone.yml
14
.drone.yml
@ -15,7 +15,8 @@ steps:
|
|||||||
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git clone https://github.com/containers/skopeo.git .
|
- git clone https://github.com/containers/skopeo.git .
|
||||||
- git checkout tags/v1.9.1
|
- git checkout tags/$SKOPEO_VERSION
|
||||||
|
# - git checkout tags/v1.9.1
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
image: bv11-cr01.bessems.eu/proxy/library/golang
|
image: bv11-cr01.bessems.eu/proxy/library/golang
|
||||||
commands:
|
commands:
|
||||||
@ -25,9 +26,18 @@ steps:
|
|||||||
BUILDTAGS=containers_image_openpgp \
|
BUILDTAGS=containers_image_openpgp \
|
||||||
GO_DYN_FLAGS=
|
GO_DYN_FLAGS=
|
||||||
- bin/skopeo --version
|
- bin/skopeo --version
|
||||||
- cp bin/skopeo /output
|
- |
|
||||||
|
curl \
|
||||||
|
--header "Authorization: token $GIT_APIKEY"
|
||||||
|
--upload-file bin/skopeo \
|
||||||
|
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo
|
||||||
|
# - cp bin/skopeo /output
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
GIT_APIKEY:
|
||||||
|
from_secret: git_apikey
|
||||||
|
GIT_USERNAME: djpbessems
|
||||||
|
SKOPEO_VERSION: v1.9.1
|
||||||
volumes:
|
volumes:
|
||||||
- name: output
|
- name: output
|
||||||
path: /output
|
path: /output
|
||||||
|
Loading…
Reference in New Issue
Block a user