-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.concourse.yml
163 lines (140 loc) · 3.85 KB
/
.concourse.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
resource_types:
- name: pull-request
type: registry-image
source:
repository: teliaoss/github-pr-resource
resources:
# - name: buildkit-resource
# type: registry-image
# source:
# repository: vito/oci-build-task
- name: git-clone-resource
type: git
icon: git
source:
branch: master
uri: https://github.com/drahnr/concourse-resource-notion-db.git
- name: env-glibc
type: registry-image
icon: oci
source:
repository: quay.io/drahnr/rust-glibc-builder
- name: containerized-resource
type: registry-image
icon: oci
source:
repository: europe-docker.pkg.dev/gensyn-main/registry/concourse-resource-notion-db
username: _json_key_base64
password: ((gcp_container_registry_pass))
tag: latest
jobs:
####################################################################################
# M A S T E R
####################################################################################
- name: master-validate
build_logs_to_retain: 10
public: false
serial: true
plan:
- in_parallel:
- get: env-glibc
- get: git-repo
resource: git-clone-resource
trigger: true
- in_parallel:
- task: compile-master
timeout: 40m
image: env-glibc
config:
platform: linux
inputs:
- name: git-repo
caches:
- path: cargo
- path: target
run:
# user: root
path: sh
args:
- -exc
- |
export RUST_BACKTRACE=full
export CARGO_HOME="$(pwd)/../cargo"
export CARGO_TARGET_DIR="$(pwd)/../target"
export EXE="${CARGO_TARGET_DIR}/release/cargo-spellcheck"
sudo chown $(whoami): -Rf ${CARGO_HOME}
sudo chown $(whoami): -Rf ${CARGO_TARGET_DIR}
sudo chown $(whoami): -Rf .
cargo +stable build --release
dir: git-repo
- try:
task: unit-tests-master
timeout: 40m
image: env-glibc
config:
platform: linux
inputs:
- name: git-repo
caches:
- path: cargo
run:
# user: root
path: sh
args:
- -exc
- |
export RUST_BACKTRACE=1
export CARGO_HOME="$(pwd)/../cargo"
sudo chown $(whoami): -Rf ${CARGO_HOME} .
rustc +stable --version --verbose
cargo +stable t
dir: git-repo
- try:
task: validate-meta-master
timeout: 15m
image: env-glibc
config:
platform: linux
inputs:
- name: git-repo
caches:
- path: cargo
run:
# user: root
path: sh
args:
- -exc
- |
export CARGO_HOME="$(pwd)/../cargo"
sudo chown $(whoami): -Rf ${CARGO_HOME} .
rustc +stable --version --verbose
cargo +stable fmt -- --check
dir: git-repo
- name: create-container
build_logs_to_retain: 5
public: false
serial: true
plan:
- get: git-repo
resource: git-clone-resource
passed: [master-validate]
trigger: true
- task: build
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: concourse/oci-build-task
params:
DOCKERFILE: git-repo/Containerfile
CONTEXT: git-repo
inputs:
- name: git-repo
outputs:
- name: image
run:
path: build
- put: containerized-resource
params: {image: image/image.tar}