pass connection string to container with drone pass

test
dan 2020-10-30 21:34:22 -06:00
parent fbd56d4e33
commit 302c1366a1
1 changed files with 1 additions and 4 deletions

View File

@ -7,13 +7,10 @@ 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 -p "8222:8222" -e "ConnectionStrings__OFBContext=server=172.17.0.1;database=admin_ofb_missionary;user=admin_ofbbutte;password=$DB_PASS;" ofb_api
volumes: volumes:
- name: docker_sock - name: docker_sock