docker test

test
dan 2020-10-30 21:53:35 -06:00
parent 510378e0e5
commit b51eb5c962
1 changed files with 2 additions and 1 deletions

View File

@ -7,10 +7,11 @@ steps:
volumes: volumes:
- name: docker_sock - name: docker_sock
path: /var/run/docker.sock path: /var/run/docker.sock
secrets: [ DB_PASS ]
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 -p "8222:8222" -e ConnectionStrings__OFBContext="server=172.17.0.1;database=admin_ofb_missionary;user=admin_ofbbutte;password=$DB_PASS;" 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