ofbapi/drone.yml

21 lines
462 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: node
image: docker
volumes:
- name: docker_sock
path: /var/run/docker.sock
environment:
ConnectionStrings__OFBContext:
from_secret: db_connection
commands:
- docker build --tag ofb_api .
- docker rm -f ofb_api || true
- docker run --name ofb_api --restart always -d -p "8222:8222" ofb_api
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock