From 3575821c775b53134167c1487700d7a4f3d487ac Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Wed, 27 Jul 2022 11:09:34 +0200 Subject: [PATCH] Disable default clone --- .drone.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 34c3e52..ae6c75d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,37 +2,32 @@ kind: pipeline type: kubernetes name: 'Golang Build' +clone: + disable: true + volumes: - name: output claim: name: flexvolsmb-drone-output -- name: scratch - temp: {} steps: - name: Clone skopeo source repository image: bv11-cr01.bessems.eu/proxy/alpine/git commands: - - git clone https://github.com/containers/skopeo.git /tmp/skopeo && cd /tmp/skopeo + - git clone https://github.com/containers/skopeo.git . - git checkout tags/v1.9.1 - volumes: - - name: scratch - path: /tmp - name: Build binary image: bv11-cr01.bessems.eu/proxy/library/golang commands: - apt-get update && apt-get install -y go-md2man - | make \ - -C /tmp/skopeo \ BUILDTAGS=containers_image_openpgp \ GO_DYN_FLAGS= - - /tmp/skopeo/bin/skopeo --version - # - cp /tmp/skopeo/bin/skopeo /output + - bin/skopeo --version + - cp /bin/skopeo /output environment: CGO_ENABLED: 0 volumes: - name: output path: /output - - name: scratch - path: /tmp