Skip to content

Dual publish the orb to both digital-asset/build and dach_ny/build. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 >>
Expand All @@ -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