mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
fix: Prevent garbage connection string
This commit is contained in:
@@ -57,7 +57,8 @@ jobs:
|
||||
env:
|
||||
WAHLRECHT_MONGODB_CONNECTION_STRING: ${{ secrets.WAHLRECHT_MONGODB_CONNECTION_STRING }}
|
||||
run: |
|
||||
sed -i "s|<wahlrecht_mongodb_connection_string>|$WAHLRECHT_MONGODB_CONNECTION_STRING|g" docker/${{ matrix.env }}/stack-config/wahlrecht.yaml
|
||||
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
|
||||
- name: Copy files to remote
|
||||
if: steps.check.outputs.should_deploy == 'true'
|
||||
uses: burnett01/rsync-deployments@7.0.2
|
||||
|
||||
Reference in New Issue
Block a user