From 475064a83515c1efd0049e3c0d320ca4ed667eee Mon Sep 17 00:00:00 2001 From: omaroughriss Date: Thu, 3 Jul 2025 12:27:52 +0200 Subject: [PATCH] Use git secret CONF --- .github/workflows/cicd.yml | 2 +- Dockerfile | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 900c819..b7d32d6 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -37,7 +37,7 @@ jobs: push: true ssh: default build-args: | - ENV_VARS=${{ secrets.ENV_VARS }} + CONF=${{ secrets.CONF }} tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e7efb72..8644997 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,11 @@ RUN apt-get update && apt-get install -y ca-certificates strace RUN useradd -m -d /home/bitcoin -u 1000 bitcoin COPY --from=builder /app/sdk_relay/target/release/sdk_relay /usr/local/bin/sdk_relay -COPY sdk_relay/.conf /home/bitcoin/.conf + +# Configuration via build arg +ARG CONF +RUN echo "$CONF" > /home/bitcoin/.conf && \ + chown bitcoin:bitcoin /home/bitcoin/.conf # Créer le répertoire .4nk avec les bonnes permissions RUN mkdir -p /home/bitcoin/.4nk && \