This commit is contained in:
parent
1db007cfd9
commit
3575821c77
17
.drone.yml
17
.drone.yml
@ -2,37 +2,32 @@ kind: pipeline
|
|||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: 'Golang Build'
|
name: 'Golang Build'
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: output
|
- name: output
|
||||||
claim:
|
claim:
|
||||||
name: flexvolsmb-drone-output
|
name: flexvolsmb-drone-output
|
||||||
- name: scratch
|
|
||||||
temp: {}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone skopeo source repository
|
- name: Clone skopeo source repository
|
||||||
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
image: bv11-cr01.bessems.eu/proxy/alpine/git
|
||||||
commands:
|
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
|
- git checkout tags/v1.9.1
|
||||||
volumes:
|
|
||||||
- name: scratch
|
|
||||||
path: /tmp
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
image: bv11-cr01.bessems.eu/proxy/library/golang
|
image: bv11-cr01.bessems.eu/proxy/library/golang
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y go-md2man
|
- apt-get update && apt-get install -y go-md2man
|
||||||
- |
|
- |
|
||||||
make \
|
make \
|
||||||
-C /tmp/skopeo \
|
|
||||||
BUILDTAGS=containers_image_openpgp \
|
BUILDTAGS=containers_image_openpgp \
|
||||||
GO_DYN_FLAGS=
|
GO_DYN_FLAGS=
|
||||||
- /tmp/skopeo/bin/skopeo --version
|
- bin/skopeo --version
|
||||||
# - cp /tmp/skopeo/bin/skopeo /output
|
- cp /bin/skopeo /output
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
volumes:
|
volumes:
|
||||||
- name: output
|
- name: output
|
||||||
path: /output
|
path: /output
|
||||||
- name: scratch
|
|
||||||
path: /tmp
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user