Skip to content
New issue

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

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

Already on GitHub? # to your account

ci(circleci): add release-flag parameter and update job names #7

Merged
merged 5 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
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
26 changes: 15 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ parameters:
type: boolean
default: false
description: "If true, the success pipeline will be executed."
release-flag:
type: boolean
default: false
description: "If true, the release pipeline will be executed."

orbs:
toolkit: jerus-org/circleci-toolkit@2.0.0
Expand Down Expand Up @@ -74,7 +78,7 @@ jobs:
- make-test:
zola-version: << parameters.zola-version >>

publish_rustc_version:
publish_zola_version:
parameters:
zola-version:
type: string
Expand All @@ -94,6 +98,7 @@ workflows:
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- not: << pipeline.parameters.success-flag >>
- not: << pipeline.parameters.validation-flag >>
- not: << pipeline.parameters.release-flag >>

jobs:
- toolkit/choose_pipeline:
Expand All @@ -110,6 +115,7 @@ workflows:
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- not: << pipeline.parameters.success-flag >>
- << pipeline.parameters.validation-flag >>
- not: << pipeline.parameters.release-flag >>
jobs:
- toolkit/label:
min_rust_version: "1.81"
Expand All @@ -122,9 +128,7 @@ workflows:
filters:
branches:
ignore: main
matrix: &matrix
parameters:
zola-version: ["0.19.2"]
zola-version: << pipeline.parameters.zola-version >>
- toolkit/update_changelog:
requires:
- test
Expand All @@ -141,6 +145,7 @@ workflows:
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- << pipeline.parameters.success-flag >>
- not: << pipeline.parameters.validation-flag >>
- not: << pipeline.parameters.release-flag >>

jobs:
- toolkit/end_success
Expand All @@ -161,22 +166,21 @@ workflows:
release:
when:
and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
- equal: ["release check", << pipeline.schedule.name >>]
- not: << pipeline.parameters.success-flag >>
- not: << pipeline.parameters.validation-flag >>
- << pipeline.parameters.release-flag >>
jobs:
- publish_zola_version:
zola-version: << pipeline.parameters.zola-version >>
- toolkit/make_release:
env:
- SEMVER=<< pipeline.parameters.zola-version >>
requires:
- publish_rustc_version
- publish_zola_version
context:
- release
- bot-check
ssh_fingerprint: << pipeline.parameters.fingerprint >>
min_rust_version: "1.81"
when_cargo_release: false
pcu_update_changelog: true
pcu_verbosity: "-vvvv"
- publish_rustc_version:
matrix:
<<: *matrix
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Configure Renovate(pr [#1])
- ci(circleci)-add release-flag parameter and update job names(pr [#7])

### Security

Expand All @@ -22,3 +23,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#2]: https://github.com/jerus-org/zola-container/pull/2
[#1]: https://github.com/jerus-org/zola-container/pull/1
[#5]: https://github.com/jerus-org/zola-container/pull/5
[#7]: https://github.com/jerus-org/zola-container/pull/7