-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update orb-tools and integrate new orb template content (#4)
- Loading branch information
Showing
13 changed files
with
162 additions
and
225 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,33 @@ | ||
version: 2.1 | ||
|
||
setup: true | ||
orbs: | ||
ztraining2strigo: zenika-training/ztraining2strigo@<<pipeline.parameters.dev-orb-version>> | ||
orb-tools: circleci/[email protected] | ||
orb-tools: circleci/[email protected] | ||
|
||
# Pipeline Parameters | ||
## These parameters are used internally by orb-tools. Skip to the Jobs section. | ||
parameters: | ||
run-integration-tests: | ||
description: An internal flag to prevent integration test from running before a development version has been created. | ||
type: boolean | ||
default: false | ||
dev-orb-version: | ||
description: > | ||
The development version of the orb to test. | ||
This value is automatically adjusted by the "trigger-integration-tests-workflow" job to correspond with the specific version created by the commit and should not be edited. | ||
A "dev:alpha" version must exist for the initial pipeline run. | ||
type: string | ||
default: "dev:alpha" | ||
filters: &filters | ||
tags: | ||
only: /.*/ | ||
|
||
workflows: | ||
# Prior to producing a development orb (which requires credentials) basic validation, linting, and even unit testing can be performed. | ||
# This workflow will run on every commit | ||
test-pack: | ||
unless: << pipeline.parameters.run-integration-tests >> | ||
lint-pack: | ||
jobs: | ||
- orb-tools/lint # Lint Yaml files | ||
- orb-tools/pack # Pack orb source | ||
# Publish development version(s) of the orb. | ||
- orb-tools/publish-dev: | ||
- orb-tools/lint: | ||
filters: *filters | ||
- orb-tools/pack: | ||
filters: *filters | ||
- orb-tools/review: | ||
filters: *filters | ||
exclude: RC005,RC009 | ||
- orb-tools/publish: | ||
orb-name: zenika-training/ztraining2strigo | ||
context: orb-publishing # A restricted context containing your private publishing credentials. Will only execute if approved by an authorized user. | ||
requires: | ||
- orb-tools/lint | ||
- orb-tools/pack | ||
# Trigger an integration workflow to test the | ||
# dev:${CIRCLE_SHA1:0:7} version of your orb | ||
- orb-tools/trigger-integration-tests-workflow: | ||
name: trigger-integration-dev | ||
context: orb-publishing | ||
vcs-type: << pipeline.project.type >> | ||
requires: | ||
- orb-tools/publish-dev | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
|
||
# This `integration-test_deploy` workflow will only run | ||
# when the run-integration-tests pipeline parameter is set to true. | ||
# It is meant to be triggered by the "trigger-integration-tests-workflow" | ||
# job, and run tests on <your orb>@dev:${CIRCLE_SHA1:0:7}. | ||
integration-test_deploy: | ||
when: << pipeline.parameters.run-integration-tests >> | ||
jobs: | ||
# Publish a semver version of the orb. relies on | ||
# the commit subject containing the text "[semver:patch|minor|major|skip]" | ||
# as that will determine whether a patch, minor or major | ||
# version will be published or if publishing should | ||
# be skipped. | ||
# e.g. [semver:patch] will cause a patch version to be published. | ||
- orb-tools/dev-promote-prod-from-commit-subject: | ||
orb-name: zenika-training/ztraining2strigo | ||
[orb-tools/lint, orb-tools/review, orb-tools/pack] | ||
# Use a context to hold your publishing token. | ||
context: orb-publishing | ||
add-pr-comment: false | ||
fail-if-semver-not-indicated: true | ||
publish-version-tag: false | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
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] | ||
filters: *filters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: 2.1 | ||
orbs: | ||
ztraining2strigo: zenika-training/ztraining2strigo@dev:<<pipeline.git.revision>> | ||
orb-tools: circleci/[email protected] | ||
|
||
filters: &filters | ||
tags: | ||
only: /.*/ | ||
|
||
workflows: | ||
test-deploy: | ||
jobs: | ||
# Make sure to include "filters: *filters" in every test job you want to run as part of your deployment. | ||
- orb-tools/pack: | ||
filters: *filters | ||
- orb-tools/publish: | ||
orb-name: zenika-training/ztraining2strigo | ||
vcs-type: << pipeline.project.type >> | ||
pub-type: production | ||
requires: | ||
- orb-tools/pack | ||
context: orb-publishing | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^v[0-9]+\.[0-9]+\.[0-9]+$/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "\U0001F41E Bug Report" | ||
description: Report any identified bugs. | ||
title: 'Bug: ' | ||
labels: [bug] | ||
# assignees: '' | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: "Is there an existing issue for this?" | ||
description: "Please search [here](https://github.com/Zenika-Training/ztraining2strigo-orb/issues?q=is%3Aissue) to see if an issue already exists for the bug you encountered" | ||
options: | ||
- label: "I have searched the existing issues" | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: "Orb version" | ||
description: | | ||
Which version of `zenika-training/ztraining2strigo` are you using? | ||
placeholder: "1.0.0" | ||
|
||
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: "Current behavior" | ||
description: "How does the issue manifest?" | ||
|
||
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: "Minimum reproduction config" | ||
description: "Enter a URL to a failed build or write a config example to reproduce the issue" | ||
placeholder: "https://app.circleci.com/..." | ||
|
||
- type: textarea | ||
attributes: | ||
label: "Other" | ||
description: | | ||
Anything else you want to share? |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "\U0001F4A1 Feature Request" | ||
description: Have an idea for a new feature? Begin by submitting a Feature Request | ||
title: 'Request: ' | ||
labels: [enhancement] | ||
# assignees: '' | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: "Is there an existing issue that is already proposing this?" | ||
description: "Please search [here](https://github.com/Zenika-Training/ztraining2strigo-orb/issues?q=is%3Aissue) to see if an issue already exists for the feature you are requesting" | ||
options: | ||
- label: "I have searched the existing issues" | ||
required: true | ||
|
||
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: "Describe the problem imposed by not having this feature" | ||
description: "Please describe the use-case you are attempting to implement, and the current limitations you are facing." | ||
|
||
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: "Describe the solution you'd like" | ||
description: "A clear and concise description of what you want to happen. Add any considered drawbacks" | ||
|
||
|
||
- type: textarea | ||
attributes: | ||
label: "Other" | ||
description: | | ||
Anything else you want to share? |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,26 @@ | ||
## PR Type | ||
|
||
**SEMVER Update Type:** | ||
- [ ] Major | ||
- [ ] Minor | ||
- [ ] Patch | ||
What kind of change does this PR introduce? | ||
|
||
## Description: | ||
<!-- Please check the one that applies to this PR using "x". --> | ||
- [ ] Bugfix | ||
- [ ] Feature | ||
- [ ] Code style update (formatting) | ||
- [ ] Refactoring (no functional changes) | ||
- [ ] CI related changes | ||
- [ ] Other... Please describe: | ||
|
||
<!--- | ||
Describe your changes in detail, preferably in an imperative mood, | ||
i.e., "add `commandA` to `jobB`" | ||
--> | ||
## What is the current behavior? | ||
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> | ||
|
||
## Motivation: | ||
Issue Number: N/A | ||
|
||
<!--- | ||
Share any open issues this PR references or otherwise describe the motivation to submit this pull request. | ||
--> | ||
## What is the new behavior? | ||
|
||
**Closes Issues:** | ||
- ISSUE URL | ||
## Does this PR introduce a breaking change? | ||
- [ ] Yes | ||
- [ ] No | ||
|
||
## Checklist: | ||
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. --> | ||
|
||
<!-- | ||
Thank you for contributing to CircleCI Orbs! | ||
before submitting your a request, please go through the following | ||
items and place an x in the [ ] if they have been completed | ||
--> | ||
|
||
- [ ] All new jobs, commands, executors, parameters have descriptions. | ||
- [ ] Usage Example version numbers have been updated. | ||
## Other information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.