test exposing ssh keys during docker build
Some checks failed
CI / Build nginx docker images (push) Failing after 6s

This commit is contained in:
2025-08-14 20:54:11 +08:00
parent aaefd685c0
commit 8882026c24
2 changed files with 5 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ jobs:
linux/arm64 linux/arm64
push: true push: true
pull: true pull: true
ssh: default=/home/luser/.ssh/id_ed25519
tags: | tags: |
"gitea.woggioni.net/woggioni/nginx:latest" "gitea.woggioni.net/woggioni/nginx:latest"
"gitea.woggioni.net/woggioni/nginx:v1.29.1" "gitea.woggioni.net/woggioni/nginx:v1.29.1"

View File

@@ -42,8 +42,10 @@ USER luser
WORKDIR /home/luser WORKDIR /home/luser
#RUN git clone --depth 1 --branch v4.0.0 https://github.com/libressl/portable.git libressl #RUN git clone --depth 1 --branch v4.0.0 https://github.com/libressl/portable.git libressl
ADD --chown=luser:luser https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz libressl.tgz #RUN git clone --depth 1 --branch v4.0.0 https://github.com/libressl/portable.git libressl
RUN tar -xzf libressl.tgz && mv libressl-${LIBRESSL_VERSION} libressl && rm libressl.tgz ADD --mount=ssh --chown=luser:luser git@github.com/libressl/portable.git#v${LIBRESSL_VERSION} libressl
#ADD --chown=luser:luser https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz libressl.tgz
#RUN tar -xzf libressl.tgz && mv libressl-${LIBRESSL_VERSION} libressl && rm libressl.tgz
RUN mkdir -p libressl/build RUN mkdir -p libressl/build
RUN cmake -G Ninja -B libressl/build -S libressl \ RUN cmake -G Ninja -B libressl/build -S libressl \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \