Update conf
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m49s
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 1m49s
This commit is contained in:
parent
e4a9a1473f
commit
9d365dc862
8
.github/workflows/cicd.yml
vendored
8
.github/workflows/cicd.yml
vendored
@ -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 }}
|
@ -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 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user