mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
fix: Pass in secret via env config
This commit is contained in:
@@ -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|<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
|
||||
if: steps.check.outputs.should_deploy == 'true'
|
||||
uses: burnett01/rsync-deployments@7.0.2
|
||||
|
||||
Reference in New Issue
Block a user