-
Notifications
You must be signed in to change notification settings - Fork 489
/
concourse.yaml
103 lines (98 loc) · 2.67 KB
/
concourse.yaml
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
# fly -t concourse set-pipeline --config './concourse.yaml' --pipeline 'docker-draw.io' --load-vars-from ./concourse.vars
resources:
- name: version
type: semver
source:
driver: git
uri: https://github.com/jgraph/draw.io.git
branch: master
file: VERSION
- name: docker-draw.io
type: git
source:
uri: https://github.com/fjudith/docker-draw.io.git
branch: master
- name: "draw.io-latest"
type: registry-image
source:
username: ((registry-username))
password: ((registry-password))
repository: ((registry-repo))/draw.io
tag: latest
- name: "draw.io-alpine"
type: registry-image
source:
username: ((registry-username))
password: ((registry-password))
repository: ((registry-repo))/draw.io
tag: alpine
jobs:
- name: build-and-push-debian
public: true
plan:
- get: version
trigger: true
- get: docker-draw.io
- task: build
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: dullest/oci-build-task
# repository: vito/oci-build-task
params:
CONTEXT: ./docker-draw.io/debian/
DOCKERFILE: ./docker-draw.io/debian/Dockerfile
inputs:
- name: docker-draw.io
- name: version
outputs:
- name: image
run:
path: build
- put: draw.io-latest
params: {image: image/image.tar, additional_tags: version/version}
- name: build-and-push-alpine
public: true
plan:
- get: version
trigger: true
- get: docker-draw.io
- task: write-additional-tags
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
inputs:
- name: version
run:
path: sh
args:
- -exc
- echo "$(cat version/version)-alpine" > additionnal_tags/version
outputs:
- name: additionnal_tags
- task: build
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: dullest/oci-build-task
# repository: vito/oci-build-task
params:
CONTEXT: ./docker-draw.io/alpine/
DOCKERFILE: ./docker-draw.io/alpine/Dockerfile
inputs:
- name: additionnal_tags
- name: docker-draw.io
outputs:
- name: image
run:
path: build
- put: draw.io-alpine
params: {image: image/image.tar, additional_tags: additionnal_tags/version}