ofbapi/drone.yml

19 lines
378 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: node
image: docker
volumes:
- name: docker_sock
path: /var/run/docker.sock
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