forked from meAmidos/dcind
-
Notifications
You must be signed in to change notification settings - Fork 6
/
pipeline.yml
120 lines (112 loc) · 2.46 KB
/
pipeline.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# This pipeline publishes and keeps the dcind image up to date
#
resources:
- name: docker-release
type: github-release
icon: docker
check_every: 1h
source:
owner: moby
repository: moby
access_token: ((github_access_token))
- name: docker-compose-release
type: github-release
icon: docker
check_every: 1h
source:
owner: docker
repository: compose
access_token: ((github_access_token))
# - name: pipeline
# type: git
# icon: git
# check_every: 1h
# source:
# uri: https://github.com/taylorsilva/dcind
# paths: [pipeline.yml]
- name: repo
type: git
icon: git
check_every: 1h
source:
uri: https://github.com/taylorsilva/dcind
ignore_paths: [pipeline.yml, README.md, example.yml]
- name: daily-rebuild
type: time
icon: clock
source:
start: 3:00 AM
stop: 3:30 AM
- name: dcind
icon: docker
type: registry-image
source:
repository: taylorsilva/dcind
tag: latest
username: ((docker.username))
password: ((docker.password))
jobs:
# - name: update-self
# plan:
# - get: pipeline
# trigger: true
# - set_pipeline: dcind
# file: pipeline/pipeline.yml
- name: build-and-publish
plan:
- in_parallel:
- get: docker-release
params:
globs: [none]
- get: docker-compose-release
params:
globs: [none]
- get: repo
trigger: true
- get: daily-rebuild
trigger: true
- in_parallel:
- load_var: docker-version
file: docker-release/version
- load_var: docker-compose-version
file: docker-compose-release/version
- task: build-image
privileged: true
params:
BUILD_ARG_DOCKER_VERSION: ((.:docker-version))
BUILD_ARG_DOCKER_COMPOSE_VERSION: ((.:docker-compose-version))
config:
platform: linux
image_resource:
type: registry-image
source:
repository: vito/oci-build-task
inputs:
- name: repo
path: .
outputs:
- name: image
run:
path: build
- task: tags
params:
DOCKER_VERSION: ((.:docker-version))
config:
platform: linux
image_resource:
type: mock
source:
mirror_self: true
outputs:
- name: tags
run:
path: sh
args:
- -c
- |
echo "${DOCKER_VERSION} ${DOCKER_VERSION}-$(date +%Y%m%d)" > tags/tags
- put: dcind
inputs: detect
params:
image: image/image.tar
additional_tags: tags/tags