Skip to content

Commit

Permalink
ci: migrate to Orb Tools 12 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRibeiro authored Dec 7, 2023
1 parent 4da5a6c commit 54ee1af
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
18 changes: 6 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1
setup: true
orbs:
orb-tools: circleci/orb-tools@11.5
orb-tools: circleci/orb-tools@12.0
shellcheck: circleci/[email protected]

filters: &filters
Expand All @@ -16,20 +16,14 @@ workflows:
- orb-tools/pack:
filters: *filters
- orb-tools/review:
exclude: RC010
filters: *filters
- shellcheck/check:
filters: *filters
- orb-tools/publish:
orb-name: circleci/rust
vcs-type: << pipeline.project.type >>
requires:
[orb-tools/lint, orb-tools/review, orb-tools/pack, shellcheck/check]
# Use a context to hold your publishing token.
context: orb-publisher
filters: *filters
# Triggers the next workflow in the Orb Development Kit.
- orb-tools/continue:
pipeline-number: << pipeline.number >>
vcs-type: << pipeline.project.type >>
requires: [orb-tools/publish]
orb_name: rust
pipeline_number: << pipeline.number >>
vcs_type: << pipeline.project.type >>
requires: [orb-tools/lint, orb-tools/review, orb-tools/pack, shellcheck/check]
filters: *filters
26 changes: 15 additions & 11 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
version: 2.1
orbs:
rust: circleci/rust@dev:<<pipeline.git.revision>>
orb-tools: circleci/orb-tools@11.5
rust: {}
orb-tools: circleci/orb-tools@12.0

filters: &filters
tags:
only: /.*/

release-filters: &release-filters
branches:
ignore: /.*/
tags:
only: /^v[0-9]+\.[0-9]+\.[0-9]+$/

jobs:
integration-test_install:
docker:
Expand Down Expand Up @@ -41,19 +47,17 @@ workflows:
working_directory: /home/circleci/project/sample
filters: *filters
- orb-tools/pack:
filters: *filters
filters: *release-filters
- orb-tools/publish:
orb-name: circleci/rust
vcs-type: << pipeline.project.type >>
pub-type: production
orb_name: circleci/rust
vcs_type: << pipeline.project.type >>
pub_type: production
enable_pr_comment: true
github_token: GHI_TOKEN
requires:
- orb-tools/pack
- integration-test_install
- integration-test_test-lint-build
- rust/lint-test-build
context: orb-publisher
filters:
branches:
ignore: /.*/
tags:
only: /^v[0-9]+\.[0-9]+\.[0-9]+$/
filters: *release-filters

0 comments on commit 54ee1af

Please sign in to comment.