This commit is contained in:
parent
f93a530e72
commit
fe22f1f089
36
.drone.yml
36
.drone.yml
@ -9,6 +9,7 @@ clone:
|
|||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Clone skopeo source repository
|
- name: Clone skopeo source repository
|
||||||
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
||||||
commands:
|
commands:
|
||||||
@ -17,6 +18,7 @@ steps:
|
|||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|
||||||
- name: Build binary (Linux)
|
- name: Build binary (Linux)
|
||||||
depends_on:
|
depends_on:
|
||||||
- Clone skopeo source repository
|
- Clone skopeo source repository
|
||||||
@ -28,16 +30,9 @@ steps:
|
|||||||
BUILDTAGS=containers_image_openpgp \
|
BUILDTAGS=containers_image_openpgp \
|
||||||
GO_DYN_FLAGS=
|
GO_DYN_FLAGS=
|
||||||
- bin/skopeo --version
|
- 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:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
GIT_APIKEY:
|
|
||||||
from_secret: git_apikey
|
|
||||||
GIT_USERNAME: djpbessems
|
|
||||||
- name: Build binary (Windows)
|
- name: Build binary (Windows)
|
||||||
depends_on:
|
depends_on:
|
||||||
- Clone skopeo source repository
|
- Clone skopeo source repository
|
||||||
@ -49,15 +44,26 @@ steps:
|
|||||||
BUILDTAGS=containers_image_openpgp \
|
BUILDTAGS=containers_image_openpgp \
|
||||||
GO_DYN_FLAGS= \
|
GO_DYN_FLAGS= \
|
||||||
bin/skopeo.windows.amd64.exe
|
bin/skopeo.windows.amd64.exe
|
||||||
- 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:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
|
- name: Upload binaries
|
||||||
|
depends_on:
|
||||||
|
- Build binary (Linux)
|
||||||
|
- Build binary (Windows)
|
||||||
|
image: bv11-cr01.bessems.eu/proxy/library/golang
|
||||||
|
commands:
|
||||||
|
- |
|
||||||
|
curl \
|
||||||
|
--header "Authorization: token $GIT_APIKEY" \
|
||||||
|
--upload-file bin/skopeo_linux_amd64 \
|
||||||
|
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo
|
||||||
|
- |
|
||||||
|
curl \
|
||||||
|
--header "Authorization: token $GIT_APIKEY" \
|
||||||
|
--upload-file bin/skopeo_windows_amd64.exe \
|
||||||
|
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo
|
||||||
|
environment:
|
||||||
GIT_APIKEY:
|
GIT_APIKEY:
|
||||||
from_secret: git_apikey
|
from_secret: git_apikey
|
||||||
GIT_USERNAME: djpbessems
|
GIT_USERNAME: djpbessems
|
||||||
|
Loading…
Reference in New Issue
Block a user