You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
582 B

kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker build --tag dronetest ./Drone/Drone.Web
- name: deploy
image: docker
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker rm -f dronetest || true
- docker run --network=proxy --name=dronetest --restart always -d dronetest
when:
event:
- promote
target:
- production
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock