diff --git a/.drone.yml b/.drone.yml index bdcfa8c..ca47820 100644 --- a/.drone.yml +++ b/.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: