Personal-site/.drone.yml

37 lines
639 B
YAML
Raw Normal View History

2021-09-07 19:32:22 +00:00
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: deployment
image: alpine
volumes:
- name: host_docker_socket
path: /var/run/docker.sock
2021-09-07 19:32:22 +00:00
commands:
2021-09-07 19:52:56 +00:00
- echo "Setting up internal docker cli"
- apk update && apk add docker docker-compose
2021-09-07 19:32:22 +00:00
- echo "Build the container image"
- docker-compose build
- echo "Restart the container"
2021-09-07 20:12:45 +00:00
- docker-compose down && docker-compose up -d
2021-09-07 19:32:22 +00:00
when:
branch:
- ci-testing
volumes:
- name: host_docker_socket
host:
path: /var/run/docker.sock
2021-09-07 19:32:22 +00:00
node:
host: socrates
trigger:
event:
- push