Disable default clone
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2022-07-27 11:09:34 +02:00
parent 1db007cfd9
commit 3575821c77
1 changed files with 6 additions and 11 deletions

View File

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