-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
45 lines (42 loc) · 1.06 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
kind: pipeline
type: docker
name: LL-dronetest
steps:
- name: check for file changes
image: herbysk/drone-plugin-check-changes
settings:
ignore: [ "/**", "!/.drone.yml", "!/*.go" ]
negative: .skip
- name: test compile the go source
image: golang:alpine
commands:
- if [ -f .skip ]; then exit; fi
- go build
- name: build a docker image
image: docker
commands:
- if [ -f .skip ]; then exit; fi
- docker build -t dronetest/goapp .
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: deploy a docker container with a docker-compose
image: docker/compose
commands:
- if [ -f .skip ]; then exit; fi
- docker-compose up -d
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: docker ps for giggles
image: docker
commands:
- if [ -f .skip ]; then exit; fi
- docker ps
volumes:
- name: docker_socket
path: /var/run/docker.sock
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock