Use git secret CONF
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 18s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 18s
This commit is contained in:
parent
f7742c8aee
commit
475064a835
2
.github/workflows/cicd.yml
vendored
2
.github/workflows/cicd.yml
vendored
@ -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 }}
|
@ -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 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user