This repository has been archived by the owner on May 7, 2024. It is now read-only.
forked from Diogomrol/gocd-s3-artifact-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.gocd.yaml
81 lines (81 loc) · 2.14 KB
/
ci.gocd.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
format_version: 3
pipelines:
"gocd-s3-artifact-plugin":
group: gocd
label_template: "${git[:8]}"
locking: off
materials:
git:
type: configrepo
blacklist:
- "*.md"
- "build.gradle"
secure_variables:
VAULT_TOKEN: "AES:am1B7EuHGEV67+WKsAqzRQ==:AU2HecWwVR2T2OqyNN4D7+9DYWZQ3udAXXp8fnR8jjk="
stages:
- build:
clean_workspace: true
resources:
- docker
artifacts:
- build:
source: build/libs/*.jar*
destination: build/libs
tasks:
- exec:
command: bash
arguments:
- -c
- ./tasks tf_apply create
- exec:
command: bash
arguments:
- -c
- ./tasks build_test
- exec:
run_if: any
command: bash
arguments:
- -c
- ./tasks tf_apply destroy
- release:
approval: manual
clean_workspace: true
jobs:
github:
resources:
- docker
tasks:
- fetch:
stage: build
job: build
source: build/libs
destination: build
- exec:
command: /bin/bash
arguments:
- ./tasks
- github_release
- bump:
clean_workspace: true
jobs:
patch:
resources:
- docker
tasks:
- exec:
command: /bin/bash
arguments:
- -c
- ./tasks bump
- exec:
command: /bin/bash
arguments:
- -c
- ./tasks commit
- exec:
command: git
arguments:
- push
- origin
- master