-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
81 lines (75 loc) · 2.41 KB
/
config.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
version: 2.1
orbs:
pipecd: pipe-cd/pipecd@<<pipeline.parameters.dev-orb-version>>
orb-tools: circleci/[email protected]
shellcheck: circleci/[email protected]
# Pipeline Parameters
parameters:
run-integration-tests:
type: boolean
default: false
dev-orb-version:
type: string
default: "dev:alpha"
jobs:
test:
executor: pipecd/default
steps:
# test orb commands
- pipecd/event-register:
event-name: helm-release
data: v0.23.0
labels: env=knanao-dev
workflows:
test-pack:
unless: << pipeline.parameters.run-integration-tests >>
jobs:
- orb-tools/lint
- shellcheck/check:
exclude: "SC1073, SC1009"
- orb-tools/pack
- approve:
type: approval
requires:
- orb-tools/lint
- orb-tools/pack
- shellcheck/check
- orb-tools/publish-dev:
orb-name: pipe-cd/pipecd
context: orb-publishing
requires:
- approve
# Trigger an integration workflow to test the
# dev:${CIRCLE_SHA1:0:7} version of your orb
- orb-tools/trigger-integration-tests-workflow:
name: trigger-integration-dev
context: orb-publishing
requires:
- orb-tools/publish-dev
# This `integration-test_deploy` workflow will only run
# when the run-integration-tests pipeline parameter is set to true.
# It is meant to be triggered by the "trigger-integration-tests-workflow"
# job, and run tests on <your orb>@dev:${CIRCLE_SHA1:0:7}.
integration-test_deploy:
when: << pipeline.parameters.run-integration-tests >>
jobs:
- test
# Publish a semver version of the orb. relies on
# the commit subject containing the text "[semver:patch|minor|major|skip]"
# as that will determine whether a patch, minor or major
# version will be published or if publishing should
# be skipped.
# e.g. [semver:patch] will cause a patch version to be published.
- orb-tools/dev-promote-prod-from-commit-subject:
orb-name: pipe-cd/pipecd
context: orb-publishing
add-pr-comment: false
fail-if-semver-not-indicated: true
publish-version-tag: true
ssh-fingerprints: ae:55:e3:45:d8:fb:1e:92:2b:5c:de:40:58:7e:ef:4c
requires:
- test
filters:
branches:
only:
- master