StaticBinary.Skopeo/.drone.yml

34 lines
684 B
YAML

kind: pipeline
type: kubernetes
name: 'Golang Build'
clone:
disable: true
volumes:
- name: output
claim:
name: flexvolsmb-drone-output
steps:
- name: Clone skopeo source repository
image: bv11-cr01.bessems.eu/proxy/alpine/git
commands:
- git clone https://github.com/containers/skopeo.git .
- git checkout tags/v1.9.1
- name: Build binary
image: bv11-cr01.bessems.eu/proxy/library/golang
commands:
- apt-get update && apt-get install -y go-md2man
- |
make \
BUILDTAGS=containers_image_openpgp \
GO_DYN_FLAGS=
- bin/skopeo --version
- cp /bin/skopeo /output
environment:
CGO_ENABLED: 0
volumes:
- name: output
path: /output