Add conditional to start of build
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
9472b5f876
commit
57d33f65c7
12
.drone.yml
12
.drone.yml
@ -11,6 +11,15 @@ volumes:
|
||||
name: flexvolsmb-drone-output
|
||||
|
||||
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
|
||||
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
||||
commands:
|
||||
@ -19,6 +28,9 @@ steps:
|
||||
# - git checkout tags/v1.9.1
|
||||
environment:
|
||||
SKOPEO_VERSION: v1.9.1
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- name: Build binary
|
||||
image: bv11-cr01.bessems.eu/proxy/library/golang
|
||||
commands:
|
||||
|
Loading…
x
Reference in New Issue
Block a user