-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
52 lines (45 loc) · 1.29 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
46
47
48
49
50
51
kind: pipeline
type: docker
name: default
steps:
- name: Install S2i
image: alpine
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- wget -O - https://github.com/openshift/source-to-image/releases/download/v1.2.0/source-to-image-v1.2.0-2a579ecd-linux-amd64.tar.gz | tar -xzvf -
- name: BUILD s2i-httpd-24-mkdocs-centos7
image: alpine
volumes:
- name: docker-socket
path: /var/run/docker.sock
environment:
DOCKER_USER:
from_secret: DOCKER_USER
DOCKER_TOKEN:
from_secret: DOCKER_TOKEN
commands:
- apk add docker
- docker build -t s2i-httpd-24-mkdocs-centos7 s2i-httpd-24-mkdocs/
- docker tag s2i-httpd-24-mkdocs-centos7 getais/s2i-httpd-24-mkdocs-centos7
- docker login -u $DOCKER_USER -p $DOCKER_TOKEN
- docker push getais/s2i-httpd-24-mkdocs-centos7
- name: BUILD mkdocs-example
image: alpine
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- ./s2i build docs-example s2i-httpd-24-mkdocs-centos7 mkdocs-example
- name: RUN docker image
image: docker/compose
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker-compose -p mkdocs up -d --force-recreate
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock