From 78c517a5ae185ba82f472913f273183cd2e15ac5 Mon Sep 17 00:00:00 2001 From: "Davin K. Tanabe" Date: Thu, 23 Jan 2025 14:47:25 -0500 Subject: [PATCH] Dual publish the orb to both digital-asset/build and dach_ny/build. --- .circleci/test-deploy.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.circleci/test-deploy.yml b/.circleci/test-deploy.yml index 39e24e4..462dd87 100644 --- a/.circleci/test-deploy.yml +++ b/.circleci/test-deploy.yml @@ -35,6 +35,13 @@ jobs: - run: name: Test nix environment command: test/test-nix-environment.sh + copy-orb-definition: + docker: + - image: cimg/base:current + steps: + - run: + name: 'Create DACH-NY/build orb definition' + command: cp dist/orb.yml dist/dach-ny-orb.yml workflows: test-deploy: jobs: @@ -52,11 +59,15 @@ workflows: context: artifactory # The orb must be re-packed for publishing, and saved to the workspace. - orb-tools/pack: - filters: *release-filters + filters: *filters pre-steps: - run: name: Write orb version file command: echo "${CIRCLE_SHA1}" | tee /home/circleci/orb-version + - copy-orb-definition: + filters: *filters + requires: + - orb-tools/pack - orb-tools/publish: orb_name: digital-asset/build vcs_type: << pipeline.project.type >> @@ -67,3 +78,14 @@ workflows: - second run context: circleci-orb-publish filters: *release-filters + - orb-tools/publish: + orb_name: dach_ny/build + orb_file_name: dist/dach-ny-orb.yml + vcs_type: << pipeline.project.type >> + pub_type: production + # Ensure this job requires all test jobs and the pack job. + requires: + - copy-orb-definition + - second run + context: circleci-orb-publish + filters: *release-filters