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 }} username: ${{ secrets.USER }}
password: ${{ secrets.TOKEN }} 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 - name: Build and push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@ -37,7 +43,7 @@ jobs:
push: true push: true
ssh: default ssh: default
build-args: | build-args: |
CONF=${{ secrets.CONF }} CONF=${{ steps.prep.outputs.conf }}
tags: | tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }} ${{ 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 # Configuration via build arg
ARG CONF ARG CONF
RUN echo "$CONF" > /home/bitcoin/.conf && \ RUN printf '%s\n' "$CONF" > /home/bitcoin/.conf && \
chown bitcoin:bitcoin /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 # Créer le répertoire .4nk avec les bonnes permissions et le dossier logs
RUN mkdir -p /home/bitcoin/.4nk/logs && \ RUN mkdir -p /home/bitcoin/.4nk/logs && \