FIX: improved sed command
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
Dominik Meyer 2023-09-07 13:03:51 +02:00
parent 214a7d24e8
commit 5b22790e91
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
2 changed files with 3 additions and 5 deletions

View File

@ -23,9 +23,8 @@ 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
- sed 's,ARG TEA_URL.*',"ARG TEA_URL=\"$TEA_URL\""',' -i Dockerfile
- cp /etc/ssl/certs2/federationHQ-CA.pem .
- 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
---
@ -54,9 +53,8 @@ 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
- sed 's,ARG TEA_URL.*',"ARG TEA_URL=\"$TEA_URL\""',' -i Dockerfile
- cp /etc/ssl/certs2/federationHQ-CA.pem .
- 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
---

View File

@ -1,6 +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"
ARG ORG_CA_FILE="federationHQ-CA.pem"
RUN apk --no-cache add ca-certificates
ADD ${ORG_CA_FILE} /usr/local/share/ca-certificates