fix: Pass in secret via env config

This commit is contained in:
2025-08-03 00:21:05 +02:00
parent fda1683e40
commit ef148c6b3f
+3 -1
View File
@@ -115,8 +115,10 @@ jobs:
shell: bash shell: bash
- name: Insert secrets - name: Insert secrets
if: steps.check.outputs.should_deploy == 'true' if: steps.check.outputs.should_deploy == 'true'
env:
WAHLRECHT_MONGODB_CONNECTION_STRING: ${{ secrets.WAHLRECHT_MONGODB_CONNECTION_STRING }}
run: | run: |
sed -i "s|<wahlrecht_mongodb_connection_string>|${{ secrets.WAHLRECHT_MONGODB_CONNECTION_STRING }}|g" docker/${{ matrix.env }}/stack-config/wahlrecht.yaml sed -i "s|<wahlrecht_mongodb_connection_string>|$WAHLRECHT_MONGODB_CONNECTION_STRING|g" docker/${{ matrix.env }}/stack-config/wahlrecht.yaml
- name: Copy files to remote - name: Copy files to remote
if: steps.check.outputs.should_deploy == 'true' if: steps.check.outputs.should_deploy == 'true'
uses: burnett01/rsync-deployments@7.0.2 uses: burnett01/rsync-deployments@7.0.2