Add conditional to start of build
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2022-07-31 18:53:59 +02:00
parent 9472b5f876
commit 57d33f65c7
1 changed files with 12 additions and 0 deletions

View File

@ -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: