Skip to content

Commit 548e550

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

1 file changed

Lines changed: 118 additions & 0 deletions

File tree

pipeline.yml

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
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_dockerfile_from_image: container-base/image.tar
37+
REGISTRY_MIRRORS: ((image_registry.artifactory_docker_mirror))
38+
platform: linux
39+
run:
40+
path: build
41+
image: builder-task
42+
privileged: true
43+
task: build
44+
timeout: 20m
45+
- config:
46+
outputs:
47+
- name: additional_tags
48+
params:
49+
VERSION: 1.0.0
50+
platform: linux
51+
run:
52+
args:
53+
- -ec
54+
- |
55+
#!/bin/bash
56+
echo -n "$VERSION" > tags.txt
57+
dir: additional_tags
58+
path: /bin/bash
59+
image: concourse-base
60+
task: additional-tags
61+
timeout: 5m
62+
- no_get: true
63+
params:
64+
additional_tags: additional_tags/tags.txt
65+
image: image/image.tar
66+
put: artifactory
67+
timeout: 10m
68+
public: true
69+
resources:
70+
- name: artifactory
71+
source:
72+
password: ((artifactory.password))
73+
repository: ((image_registry.artifactory_docker_registry))/concourse/github-pr-resource
74+
tag: 1.0.0
75+
username: ((artifactory.username))
76+
type: registry-image
77+
- name: builder-task
78+
source:
79+
password: ((artifactory.password))
80+
repository: ((image_registry.artifactory_docker_mirror))/vito/oci-build-task
81+
username: ((artifactory.username))
82+
type: registry-image
83+
- check_every: 24h0m0s
84+
icon: docker
85+
name: concourse-base
86+
source:
87+
password: ((artifactory.password))
88+
repository: ((image_registry.artifactory_docker_mirror))/concourse/base.node-18
89+
tag: 7.9.1
90+
username: ((artifactory.username))
91+
type: registry-image
92+
- check_every: 24h0m0s
93+
icon: docker
94+
name: container-base
95+
source:
96+
password: ((artifactory.password))
97+
repository: ((image_registry.artifactory_docker_mirror))/alpine
98+
tag: latest
99+
username: ((artifactory.username))
100+
type: registry-image
101+
- check_every: 24h0m0s
102+
icon: docker
103+
name: container-builder
104+
source:
105+
password: ((artifactory.password))
106+
repository: ((image_registry.artifactory_docker_mirror))/golang
107+
tag: latest
108+
username: ((artifactory.username))
109+
type: registry-image
110+
- check_every: 1h0m0s
111+
icon: github
112+
name: github-pr-resource
113+
source:
114+
branch: master
115+
paths: null
116+
private_key: ((github.private_key))
117+
uri: git@github.com:roryp2/github-pr-resource.git
118+
type: git

0 commit comments

Comments
 (0)