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