Skip to content

Commit 29ecebc

Browse files
committed
Dual publish the orb to both digital-asset/build and dach_ny/build.
1 parent 7c3f188 commit 29ecebc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.circleci/test-deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
- run:
3636
name: Test nix environment
3737
command: test/test-nix-environment.sh
38+
copy-orb-definition:
39+
docker:
40+
- image: cimg/base:current
41+
steps:
42+
- run:
43+
name: 'Create DACH-NY/build orb definition'
44+
command: cp dist/orb.yml dist/dach-ny-orb.yml
3845
workflows:
3946
test-deploy:
4047
jobs:
@@ -57,6 +64,10 @@ workflows:
5764
- run:
5865
name: Write orb version file
5966
command: echo "${CIRCLE_SHA1}" | tee /home/circleci/orb-version
67+
- copy-orb-definition:
68+
filters: *filters
69+
requires:
70+
- orb-tools/pack
6071
- orb-tools/publish:
6172
orb_name: digital-asset/build
6273
vcs_type: << pipeline.project.type >>
@@ -67,3 +78,14 @@ workflows:
6778
- second run
6879
context: circleci-orb-publish
6980
filters: *release-filters
81+
- orb-tools/publish:
82+
orb_name: dach_ny/build
83+
orb_file_name: dist/dach-ny-orb.yml
84+
vcs_type: << pipeline.project.type >>
85+
pub_type: production
86+
# Ensure this job requires all test jobs and the pack job.
87+
requires:
88+
- copy-orb-definition
89+
- second run
90+
context: circleci-orb-publish
91+
filters: *release-filters

0 commit comments

Comments
 (0)