ADD: initial ci/cd configuration
This commit is contained in:
parent
0dde4050a1
commit
e58ec879e6
29
.drone.yml
Normal file
29
.drone.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: default-build
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: fedhq-ca-crt
|
||||||
|
config_map:
|
||||||
|
name: fedhq-ca-crt
|
||||||
|
default_mode: 420 # same as 644 in octal, or u+w,a+r
|
||||||
|
optional: false
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Build Container
|
||||||
|
image: debian:stable
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: fedhq-ca-crt
|
||||||
|
path: /etc/ssl/certs/federationHQ-CA.pem
|
||||||
|
commands:
|
||||||
|
- mkdir -p /etc/ssl/certs
|
||||||
|
- ln -s /etc/ssl/certs2/federationHQ-CA.pem /etc/ssl/certs/
|
||||||
|
- sed -i 's/65534/1000/' /etc/passwd
|
||||||
|
- echo "192.168.230.200 registry.cloud.federationhq.de" >> /etc/hosts
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -qy install ca-certificates buildah crun
|
||||||
|
- buildah pull registry.cloud.federationhq.de/netcat:latest || true
|
||||||
|
- buildah bud -t registry.cloud.federationhq.de/netcat:latest -f Dockerfile
|
||||||
|
- buildah push registry.cloud.federationhq.de/netcat:latest
|
Loading…
Reference in New Issue
Block a user