Skip to content
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

chore: setup CircleCI for Workflows #479

Merged
merged 1 commit into from
Jul 22, 2023
Merged
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
41 changes: 27 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
version: 2.1

parameters:
perform_delivery:
type: boolean
default: false
delivery_commit:
type: string
default: ""
description: The commit to checkout and run the delivery from
delivery_targets:
type: string
default: ""
description: Ignore the target(s) that are listed in the delivery manifest
and instead deliver these targets. Comma-separated list of labels.

# enable CircleCI's dynamic configuration feature
setup: true

orbs:
continuation: circleci/[email protected]
jobs:
setup:
executor: continuation/default
resource_class: aspect-build/default
steps:
- checkout
- run:
name: Generate config
command: |
rosetta steps > generated_config.yml
- continuation/continue:
configuration_path: generated_config.yml
slack: circleci/[email protected]
# CCI doesn't allow us to use a relative path in the monorepo, so we have to refer to an
# already-published orb in their registry.
# Run `bazel run --stamp //rosetta/cci-orb:publish` to produce a new version.
bazel: aspect-build/workflows@dev:5.6.0-rc9

workflows:
setup:
bazel-setup:
jobs:
- setup
- bazel/setup:
aspect-config: .aspect/workflows/config.yaml
resource_class: aspect-build/bazel-lib
context:
- slack