-
Notifications
You must be signed in to change notification settings - Fork 15
/
.drone.yml
68 lines (61 loc) · 1.35 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
kind: pipeline
type: docker
name: New version
steps:
- name: Build updated images
image: ruby:2.6.5
volumes:
- name: docker
path: /var/run/docker.sock
environment:
REGISTRY_USER:
from_secret: ow_registry_username
REGISTRY_PASSWORD:
from_secret: ow_registry_password
commands:
- gem update bundler
- bundle install
- curl -fsSL https://get.docker.com | bash
- docker login quay.io -u $REGISTRY_USER -p $REGISTRY_PASSWORD
- bundle exec ruby ow-cli incremental-build --push
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
- push
branch:
- master
---
kind: pipeline
type: docker
name: Push
steps:
- name: Build updated images
image: ruby:2.6.5
volumes:
- name: docker
path: /var/run/docker.sock
environment:
REGISTRY_USER:
from_secret: ow_registry_username
REGISTRY_PASSWORD:
from_secret: ow_registry_password
commands:
- gem update bundler
- bundle install
- curl -fsSL https://get.docker.com | bash
- docker login quay.io -u $REGISTRY_USER -p $REGISTRY_PASSWORD
- bundle exec ruby ow-cli incremental-build
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
- push
branch:
exclude:
- master