/
config.yml
41 lines (39 loc) · 1.42 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
version: 2.1
orbs:
orb-tools: circleci/orb-tools@8.5.0
workflows:
publish-dev:
jobs:
- orb-tools/publish-dev:
pre-steps:
- checkout
- run: circleci orb process src/@orb.yml
# pre steps to validate
alpha-version-ref: 'dev:$CIRCLE_BRANCH'
orb-name: pantheon-systems/pantheon
orb-path: 'src/@orb.yml'
# @todo, add integration tests.
# See https://github.com/pantheon-systems/circleci-orb/issues/2
publish:
jobs:
# CircleCI recommends a more complex workflow for promoting
# dev Orbs instead of directly creating tags.
# It might be worthwhile to switch to that workflow eventually.
# @See https://github.com/pantheon-systems/circleci-orb/issues/20
# For the time being, I (Steve Persch) would prefer to make tags
# using the GitHub UI and let this step publish an Orb version with
# the same name as the tag.
# Manually creating tags introduces the possibility of making the wrong
# tag name. I think that the risk is acceptable for the simpler CI
# workflow here.
- orb-tools/publish:
filters:
branches:
ignore: /.*/
tags:
only: /.*/
pre-steps:
- checkout
- run: circleci orb process src/@orb.yml
orb-ref: 'pantheon-systems/pantheon@$CIRCLE_TAG'
orb-path: 'src/@orb.yml'