mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
fix: Add environment variable for wahlrecht
This commit is contained in:
@@ -113,6 +113,10 @@ jobs:
|
|||||||
echo "should_deploy=false" >> $GITHUB_OUTPUT
|
echo "should_deploy=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- name: Insert secrets
|
||||||
|
if: steps.check.outputs.should_deploy == 'true'
|
||||||
|
run: |
|
||||||
|
sed -i "s|<wahlrecht_mongodb_connection_string>|${{ secrets.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
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ services:
|
|||||||
- internal_net
|
- internal_net
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
environment:
|
||||||
|
MONGODB_CONNECTION_STRING: <wahlrecht_mongodb_connection_string>
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal_net:
|
internal_net:
|
||||||
|
|||||||
Reference in New Issue
Block a user