Update conf
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m49s

This commit is contained in:
omaroughriss 2025-07-03 13:09:19 +02:00
parent e4a9a1473f
commit 9d365dc862
2 changed files with 10 additions and 3 deletions

View File

@ -30,6 +30,12 @@ jobs:
username: ${{ secrets.USER }}
password: ${{ secrets.TOKEN }}
- name: Prepare Config
id: prep
run: |
ESCAPED_CONF=$(echo '${{ secrets.CONF }}' | sed 's/"/\\"/g')
echo "conf=$ESCAPED_CONF" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
@ -37,7 +43,7 @@ jobs:
push: true
ssh: default
build-args: |
CONF=${{ secrets.CONF }}
CONF=${{ steps.prep.outputs.conf }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}

View File

@ -24,8 +24,9 @@ COPY --from=builder /app/target/release/sdk_relay /usr/local/bin/sdk_relay
# Configuration via build arg
ARG CONF
RUN echo "$CONF" > /home/bitcoin/.conf && \
chown bitcoin:bitcoin /home/bitcoin/.conf
RUN printf '%s\n' "$CONF" > /home/bitcoin/.conf && \
chown bitcoin:bitcoin /home/bitcoin/.conf && \
cat /home/bitcoin/.conf
# Créer le répertoire .4nk avec les bonnes permissions et le dossier logs
RUN mkdir -p /home/bitcoin/.4nk/logs && \