ADD: new approach
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Dominik Meyer 2023-09-07 12:55:59 +02:00
parent 4244bd2647
commit fff60b5620
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
2 changed files with 9 additions and 2 deletions

View File

@ -23,8 +23,10 @@ steps:
commands:
- scripts/setupEnvironment.sh
- export TEA_URL=`curl -L https://gitea.com/gitea/tea/releases/latest | grep -e "tea.*linux-amd64\"" | cut -d '"' -f 6`
- sed 's/ARG.TEA_URL.*/ARG \"${TEA_URL}/\"' -i Dockerfile
- cp /etc/ssl/certs2/federationHQ-CA.pem .
- buildah bud --build-arg ORG_CA_FILE=federationHQ-CA.pem --build-arg TEA_URL=${TEA_URL} --network host -t "registry.cloud.federationhq.de/tea:latest-amd64" --arch amd64 .
- sed 's/ARG.ORG_CA_FILE/ARG \/etc\/ssl\/certs2\/federationHQ-CA\.pem/' -i Dockerfile
- buildah bud --network host -t "registry.cloud.federationhq.de/tea:latest-amd64" --arch amd64 .
- buildah push --all registry.cloud.federationhq.de/tea:latest-amd64
---
kind: pipeline
@ -52,10 +54,13 @@ steps:
commands:
- scripts/setupEnvironment.sh
- export TEA_URL=`curl -L https://gitea.com/gitea/tea/releases/latest | grep -e "tea.*linux-arm64\"" | cut -d '"' -f 6`
- sed 's/ARG.TEA_URL.*/ARG \"${TEA_URL}/\"' -i Dockerfile
- cp /etc/ssl/certs2/federationHQ-CA.pem .
- buildah bud --build-arg ORG_CA_FILE=federationHQ-CA.pem --build-arg TEA_URL=${TEA_URL} --network host -t "registry.cloud.federationhq.de/tea:latest-arm64" --arch arm64 .
- sed 's/ARG.ORG_CA_FILE/ARG \/etc\/ssl\/certs2\/federationHQ-CA\.pem/' -i Dockerfile
- buildah bud --network host -t "registry.cloud.federationhq.de/tea:latest-arm64" --arch arm64 .
- buildah push --all registry.cloud.federationhq.de/tea:latest-arm64
---
---
kind: pipeline
type: kubernetes
name: push

View File

@ -1,4 +1,6 @@
FROM alpine:latest
ARG TEA_URL="https://gitea.com/gitea/t0ea/releases/download/v0.9.2/tea-0.9.2-linux-amd64"
ARG ORG_CA_FILE="/etc/ssl/certs2/federationHQ-CA.pem"
RUN apk --no-cache add ca-certificates
ADD ${ORG_CA_FILE} /usr/local/share/ca-certificates