FIX: ca certificate management
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Dominik Meyer 2023-07-10 09:38:56 +02:00
parent 7eb620dca1
commit 9080800441
No known key found for this signature in database
GPG Key ID: B4C312B600606B64

View File

@ -15,14 +15,14 @@ steps:
privileged: true privileged: true
volumes: volumes:
- name: fedhq-ca-crt - name: fedhq-ca-crt
path: /etc/ssl/certs/federationHQ-CA.pem path: /etc/ssl/certs2/federationHQ-CA.pem
commands: commands:
- mkdir -p /etc/ssl/certs - mkdir -p /etc/ssl/certs
- ln -s /etc/ssl/certs2/federationHQ-CA.pem /etc/ssl/certs/
- sed -i 's/65534/1000/' /etc/passwd - sed -i 's/65534/1000/' /etc/passwd
- echo "192.168.230.200 registry.cloud.federationhq.de" >> /etc/hosts - echo "192.168.230.200 registry.cloud.federationhq.de" >> /etc/hosts
- apt-get update - apt-get update
- apt-get -qy install ca-certificates buildah crun - apt-get -qy install ca-certificates buildah crun
- update-ca-certificates --fresh
- buildah pull registry.cloud.federationhq.de/netcat:latest || true - buildah pull registry.cloud.federationhq.de/netcat:latest || true
- buildah bud -t registry.cloud.federationhq.de/netcat:latest -f Dockerfile - buildah bud -t registry.cloud.federationhq.de/netcat:latest -f Dockerfile
- buildah push registry.cloud.federationhq.de/netcat:latest - buildah push registry.cloud.federationhq.de/netcat:latest