This commit is contained in:
parent
1db007cfd9
commit
3575821c77
17
.drone.yml
17
.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user