-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline-build.yml
69 lines (65 loc) · 1.64 KB
/
pipeline-build.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
resources:
- name: rust-build-image
type: registry-image
icon: docker
source:
repository: rust
tag: 1-buster
- name: artifacts
type: dynamo-keyval-resource
icon: package-variant-closed
source:
table_name: keyval-dynamo-table
partition_key: application
key: my-app
access_key: ((access-key))
secret_key: ((secret-key))
region: us-east-1
- name: version
type: semver
icon: aws
source:
driver: s3
initial_version: 1.0.0
access_key_id: ((access-key))
secret_access_key: ((secret-key))
bucket: version-bucket
region_name: us-east-1
key: concourse/version
resource_types:
- name: dynamo-keyval-resource
type: registry-image
source:
repository: wapplegate/dynamo-keyval-resource
tag: latest
jobs:
- name: build
public: true
plan:
- in_parallel:
- get: rust-build-image
- get: version
params: { pre: RC }
- task: build
image: rust-build-image
config:
platform: linux
inputs:
- name: version
run:
path: bash
args:
- -exc
- |
export ROOT_DIR=$PWD
version=$(cat ${ROOT_DIR}/version/number)
echo $version;
cd artifacts
echo "version-${version}" > version.txt
outputs:
- name: artifacts
- put: artifacts
inputs:
- artifacts
params:
file: artifacts/version.txt