StaticBinary.Skopeo/.drone.yml

39 lines
840 B
YAML
Raw Normal View History

2022-07-27 08:27:12 +00:00
kind: pipeline
type: kubernetes
name: 'Golang Build'
volumes:
- name: output
claim:
name: flexvolsmb-drone-output
2022-07-27 08:39:59 +00:00
- name: scratch
temp: {}
2022-07-27 08:27:12 +00:00
steps:
- name: Clone skopeo source repository
2022-07-27 08:30:32 +00:00
image: bv11-cr01.bessems.eu/proxy/alpine/git
2022-07-27 08:27:12 +00:00
commands:
2022-07-27 08:39:59 +00:00
- git clone https://github.com/containers/skopeo.git /tmp/skopeo && cd /tmp/skopeo
2022-07-27 08:27:12 +00:00
- git checkout tags/v1.9.1
2022-07-27 08:39:59 +00:00
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 \
2022-07-27 08:45:45 +00:00
-C /tmp/skopeo \
2022-07-27 08:39:59 +00:00
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
2022-07-27 08:41:41 +00:00
- name: scratch
path: /tmp