Use git secret CONF
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 18s

This commit is contained in:
omaroughriss 2025-07-03 12:27:52 +02:00
parent f7742c8aee
commit 475064a835
2 changed files with 6 additions and 2 deletions

View File

@ -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 }}

View File

@ -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 && \