Personal-site/.drone.yml

37 lines
618 B
YAML

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
commands:
- echo "Setting up internal docker cli"
- apk update && apk add docker docker-compose
- echo "Build the container image"
- docker-compose build
- echo "Restart the container"
- docker-compose restart
when:
branch:
- ci-testing
volumes:
- name: host_docker_socket
host:
path: /var/run/docker.sock
node:
host: socrates
trigger:
event:
- push