diff --git a/.drone.yml b/.drone.yml index d938e15..0a9b320 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,8 @@ steps: image: bv11-cr01.bessems.eu/proxy/alpine/git commands: - git clone https://github.com/containers/skopeo.git . - - git checkout tags/v1.9.1 + - git checkout tags/$SKOPEO_VERSION + # - git checkout tags/v1.9.1 - name: Build binary image: bv11-cr01.bessems.eu/proxy/library/golang commands: @@ -25,9 +26,18 @@ steps: BUILDTAGS=containers_image_openpgp \ GO_DYN_FLAGS= - bin/skopeo --version - - cp bin/skopeo /output + - | + curl \ + --header "Authorization: token $GIT_APIKEY" + --upload-file bin/skopeo \ + https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo + # - cp bin/skopeo /output environment: CGO_ENABLED: 0 + GIT_APIKEY: + from_secret: git_apikey + GIT_USERNAME: djpbessems + SKOPEO_VERSION: v1.9.1 volumes: - name: output path: /output