StaticBinary.Skopeo/.drone.yml

39 lines
840 B
YAML

kind: pipeline
type: kubernetes
name: 'Golang Build'
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 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
environment:
CGO_ENABLED: 0
volumes:
- name: output
path: /output
- name: scratch
path: /tmp