fix: Make sure secret for timetable is added

This commit is contained in:
2025-08-09 19:48:37 +02:00
parent 47d869d3b4
commit 9d3b0b59f0
+3
View File
@@ -65,9 +65,12 @@ jobs:
if: steps.check.outputs.should_deploy == 'true' if: steps.check.outputs.should_deploy == 'true'
env: env:
WAHLRECHT_MONGODB_CONNECTION_STRING: ${{ secrets.WAHLRECHT_MONGODB_CONNECTION_STRING }} WAHLRECHT_MONGODB_CONNECTION_STRING: ${{ secrets.WAHLRECHT_MONGODB_CONNECTION_STRING }}
TIMETABLE_MONGODB_CONNECTION_STRING: ${{ secrets.TIMETABLE_MONGODB_CONNECTION_STRING }}
run: | run: |
ESCAPED=$(printf '%s' "$WAHLRECHT_MONGODB_CONNECTION_STRING" | sed 's/&/\\&/g') ESCAPED=$(printf '%s' "$WAHLRECHT_MONGODB_CONNECTION_STRING" | sed 's/&/\\&/g')
sed -i "s|<wahlrecht_mongodb_connection_string>|$ESCAPED|g" docker/${{ matrix.env }}/stack-config/wahlrecht.yaml sed -i "s|<wahlrecht_mongodb_connection_string>|$ESCAPED|g" docker/${{ matrix.env }}/stack-config/wahlrecht.yaml
ESCAPED=$(printf '%s' "$TIMETABLE_MONGODB_CONNECTION_STRING" | sed 's/&/\\&/g')
sed -i "s|<timetable_mongodb_connection_string>|$ESCAPED|g" docker/${{ matrix.env }}/stack-config/timetable.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