Skip to content

Commit 13cf23c

Browse files
author
Rory Price-Coggins
committed
chore: add concourse pipeline
1 parent 741bd72 commit 13cf23c

1 file changed

Lines changed: 119 additions & 0 deletions

File tree

pipeline.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
jobs:
2+
- build_logs_to_retain: 3
3+
name: build-github-pr-resource
4+
plan:
5+
- in_parallel:
6+
steps:
7+
- get: concourse-base
8+
timeout: 5m
9+
- get: container-base
10+
params:
11+
format: oci
12+
timeout: 5m
13+
- get: container-builder
14+
params:
15+
format: oci
16+
timeout: 5m
17+
- get: builder-task
18+
timeout: 5m
19+
- get: src
20+
resource: github-pr-resource
21+
timeout: 5m
22+
trigger: true
23+
- config:
24+
inputs:
25+
- name: src
26+
- name: container-base
27+
- name: container-builder
28+
outputs:
29+
- name: image
30+
params:
31+
BUILD_ARG_CONCOURSE_INSTANCE: ((concourse.host))
32+
BUILD_ARG_NPM_TOKEN: ((npm_token))
33+
BUILD_ARG_VERSION: 1.0.0
34+
CONTEXT: src/.
35+
DOCKERFILE: src/Dockerfile
36+
IMAGE_ARG_base_image: container-base/image.tar
37+
IMAGE_ARG_builder_image: container-builder/image.tar
38+
REGISTRY_MIRRORS: ((image_registry.artifactory_docker_mirror))
39+
platform: linux
40+
run:
41+
path: build
42+
image: builder-task
43+
privileged: true
44+
task: build
45+
timeout: 20m
46+
- config:
47+
outputs:
48+
- name: additional_tags
49+
params:
50+
VERSION: 1.0.0
51+
platform: linux
52+
run:
53+
args:
54+
- -ec
55+
- |
56+
#!/bin/bash
57+
echo -n "$VERSION" > tags.txt
58+
dir: additional_tags
59+
path: /bin/bash
60+
image: concourse-base
61+
task: additional-tags
62+
timeout: 5m
63+
- no_get: true
64+
params:
65+
additional_tags: additional_tags/tags.txt
66+
image: image/image.tar
67+
put: artifactory
68+
timeout: 10m
69+
public: true
70+
resources:
71+
- name: artifactory
72+
source:
73+
password: ((artifactory.password))
74+
repository: ((image_registry.artifactory_docker_registry))/concourse/github-pr-resource
75+
tag: 1.0.0
76+
username: ((artifactory.username))
77+
type: registry-image
78+
- name: builder-task
79+
source:
80+
password: ((artifactory.password))
81+
repository: ((image_registry.artifactory_docker_mirror))/vito/oci-build-task
82+
username: ((artifactory.username))
83+
type: registry-image
84+
- check_every: 24h0m0s
85+
icon: docker
86+
name: concourse-base
87+
source:
88+
password: ((artifactory.password))
89+
repository: ((image_registry.artifactory_docker_mirror))/concourse/base.node-18
90+
tag: 7.9.1
91+
username: ((artifactory.username))
92+
type: registry-image
93+
- check_every: 24h0m0s
94+
icon: docker
95+
name: container-base
96+
source:
97+
password: ((artifactory.password))
98+
repository: ((image_registry.artifactory_docker_mirror))/alpine
99+
tag: latest
100+
username: ((artifactory.username))
101+
type: registry-image
102+
- check_every: 24h0m0s
103+
icon: docker
104+
name: container-builder
105+
source:
106+
password: ((artifactory.password))
107+
repository: ((image_registry.artifactory_docker_mirror))/golang
108+
tag: latest
109+
username: ((artifactory.username))
110+
type: registry-image
111+
- check_every: 1h0m0s
112+
icon: github
113+
name: github-pr-resource
114+
source:
115+
branch: master
116+
paths: null
117+
private_key: ((github.private_key))
118+
uri: git@github.com:roryp2/github-pr-resource.git
119+
type: git

0 commit comments

Comments
 (0)