Db_connection_string

test
dan 2020-10-30 20:49:18 -06:00
parent 1d47da55c7
commit fbd56d4e33
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,6 @@
"MissionaryEmailAddress": "contact@oldfashionbaptistbutte.com" "MissionaryEmailAddress": "contact@oldfashionbaptistbutte.com"
}, },
"ConnectionStrings": { "ConnectionStrings": {
"OFBContext": "server=localhost;database=ofb2;user=ofbapi2;password={{db_pass}};" "OFBContext": "server=localhost;database=admin_ofb_missionary;user=admin_ofbbutte;password={{dbpass}};"
} }
} }

View File

@ -7,12 +7,14 @@ steps:
volumes: volumes:
- name: docker_sock - name: docker_sock
path: /var/run/docker.sock path: /var/run/docker.sock
environment:
ConnectionStrings__OFBContext:
from_secret: db_connection
commands: commands:
- docker build --tag ofb_api . - docker build --tag ofb_api .
- docker rm -f ofb_api || true - docker rm -f ofb_api || true
- docker run --name ofb_api --restart always -d -p "8222:8222" ofb_api - docker run --name ofb_api --restart always -d -p "8222:8222" ofb_api
volumes: volumes:
- name: docker_sock - name: docker_sock
host: host: