From ef148c6b3fa199dd45c1a9485aecf8fe63b68803 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 3 Aug 2025 00:21:05 +0200 Subject: [PATCH] fix: Pass in secret via env config --- .github/workflows/deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1e13590..815ba71 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -115,8 +115,10 @@ jobs: shell: bash - name: Insert secrets if: steps.check.outputs.should_deploy == 'true' + env: + WAHLRECHT_MONGODB_CONNECTION_STRING: ${{ secrets.WAHLRECHT_MONGODB_CONNECTION_STRING }} run: | - sed -i "s||${{ secrets.WAHLRECHT_MONGODB_CONNECTION_STRING }}|g" docker/${{ matrix.env }}/stack-config/wahlrecht.yaml + sed -i "s||$WAHLRECHT_MONGODB_CONNECTION_STRING|g" docker/${{ matrix.env }}/stack-config/wahlrecht.yaml - name: Copy files to remote if: steps.check.outputs.should_deploy == 'true' uses: burnett01/rsync-deployments@7.0.2