Remove conditional;Housekeeping;Deduplicate variables
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a582b963a0
commit
aea01199c6
25
.drone.yml
25
.drone.yml
@ -2,32 +2,18 @@ kind: pipeline
|
|||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: 'Golang Build'
|
name: 'Golang Build'
|
||||||
|
|
||||||
|
environment:
|
||||||
|
SKOPEO_VERSION: v1.9.1
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: output
|
|
||||||
claim:
|
|
||||||
name: flexvolsmb-drone-output
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check for existing release
|
|
||||||
image: bv11-cr01.bessems.eu/proxy/alpine/curl
|
|
||||||
commands:
|
|
||||||
- |
|
|
||||||
if [[ "$(curl -s -o /dev/null -w "%{http_code}" https://code.spamasaurus.com/api/v1/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION)" -ne "200" ]]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
- 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:
|
||||||
- git clone https://github.com/containers/skopeo.git .
|
- git clone https://github.com/containers/skopeo.git .
|
||||||
- git checkout tags/$SKOPEO_VERSION
|
- git checkout tags/$SKOPEO_VERSION
|
||||||
# - git checkout tags/v1.9.1
|
|
||||||
environment:
|
|
||||||
SKOPEO_VERSION: v1.9.1
|
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
@ -45,13 +31,8 @@ steps:
|
|||||||
--header "Authorization: token $GIT_APIKEY" \
|
--header "Authorization: token $GIT_APIKEY" \
|
||||||
--upload-file bin/skopeo \
|
--upload-file bin/skopeo \
|
||||||
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/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:
|
GIT_APIKEY:
|
||||||
from_secret: git_apikey
|
from_secret: git_apikey
|
||||||
GIT_USERNAME: djpbessems
|
GIT_USERNAME: djpbessems
|
||||||
SKOPEO_VERSION: v1.9.1
|
|
||||||
volumes:
|
|
||||||
- name: output
|
|
||||||
path: /output
|
|
||||||
|
Loading…
Reference in New Issue
Block a user