-
Notifications
You must be signed in to change notification settings - Fork 0
GitHub multiple environment support #7
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
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
bb0fea6
feat: add environment variables
jackhodgkiss 21686bb
feat: add `concurrency_group` to `tempest`
jackhodgkiss 4759aaf
fix: use `snake_case` for `inputs`
jackhodgkiss 99dfc11
feat!: add multiple environment support to tempest
jackhodgkiss 51c6b8c
fix: use `snake_case` for `tempest` vars
jackhodgkiss 1d0afd2
feat: add environment support to `generic`
jackhodgkiss c42b868
feat: add environment support to `build-kayobe`
jackhodgkiss f17aaea
feat: add environment support to `config-diff`
jackhodgkiss cc800ca
fix: add missing `environment` input
jackhodgkiss 266741c
fix: remove unwanted whitespace
jackhodgkiss cdc046f
fix: cannot concatenate between str and list
jackhodgkiss 63164b7
fix: add missing newline
jackhodgkiss a145abe
feat: test both single and multiple environments
jackhodgkiss 742d01e
fix: remove excess newlines
jackhodgkiss c47bd9f
fix: support `ghcr.io` with multiple environments
jackhodgkiss c3ff892
fix: artifact name collision
jackhodgkiss 61cce9d
feat: test registry support with custom password
jackhodgkiss e59e242
feat: use unsafe map
jackhodgkiss 566cfef
fix: use plaintext password in test
jackhodgkiss 3a8128a
fix: use `github_environment_selector`
jackhodgkiss 980a27c
fix: improve templating of `inputs`
jackhodgkiss a05b502
feat: only pass `KAYOBE_ENVIRONMENT` if required
jackhodgkiss ab277bc
feat: allow arguments to be overriden with mult env
jackhodgkiss a7fcbe3
fix: improve `single` environment support
jackhodgkiss ef730a4
fix: customise `TEMPEST_OPENRC`
jackhodgkiss 0229ce1
feat: allow registry attributes to be overridden
jackhodgkiss ba886a1
feat: improve testing of `github` role
jackhodgkiss b440bf1
fix: add `inventory` to playbook
jackhodgkiss 3ce4141
fix: `format` func call
jackhodgkiss 860f674
fix: `format` syntax
jackhodgkiss 8203621
fix: linting issues
jackhodgkiss 780a235
feat: add support for selecting `release`
jackhodgkiss f979b70
fix: `prepate` -> `prepare`
jackhodgkiss 26d9b64
fix: add `github_image_tag`
jackhodgkiss 20f2d6d
fix: single environment config diff
jackhodgkiss 5617be6
Revert "fix: single environment config diff"
jackhodgkiss 53a7d0e
fix: single environment config diff
jackhodgkiss 51a9b17
typo: add missing `e`
jackhodgkiss 02931bc
fix: `github_environment_selector` value
jackhodgkiss 9777ab2
fix: mark `github_image_tag` as `unsafe`
jackhodgkiss ee23057
feat: add support for sharing registry
jackhodgkiss 7dabf14
Merge pull request #8 from stackhpc/github-mult-env
jackhodgkiss 612c1b7
fix: remove unused variable from `tests`
jackhodgkiss 7827460
feat: remove rally registry settings
jackhodgkiss 1009a06
fix: use newer environment variable
jackhodgkiss 44ed47f
feat: use `.gitreview` for selecting release
jackhodgkiss 9a47c26
feat: empty var for `github_environment_selector`
jackhodgkiss 45c95a0
Update roles/github/README.md
jackhodgkiss 85612c5
feat: remove `header.yml.j2`
jackhodgkiss e0d46e8
feat: remove `KAYOBE_ENVIRONMENT`
jackhodgkiss 5e107cb
fix: undefined variable for `single` env workflows
jackhodgkiss 1f242d5
feat: disable `buildx` step by default
jackhodgkiss a2dd70e
Revert "feat: remove `header.yml.j2`"
jackhodgkiss 932b690
fix!: backwards compatibility with nested vars
jackhodgkiss 51dee17
feat: minor changes to `README.md`
jackhodgkiss 26870a3
feat: update README.md
jackhodgkiss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ exclude_paths: | |
|
|
||
| skip_list: | ||
| - galaxy[no-changelog] | ||
| - meta-runtime[unsupported-version] | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,17 +1,30 @@ | ||
| name: %% format_file_name(workflow.file_name, is_title=true) %% | ||
| {%- macro format_file_name(file_name, is_title=false, is_subtitle=false) -%} | ||
| {%- set formatted_name = file_name | splitext | first -%} | ||
| {%- if is_title -%} | ||
| {%- set formatted_name = formatted_name | replace('-', ' ') | title | regex_replace('Vm','VM') -%} | ||
| {%- endif -%} | ||
| {%- if is_subtitle -%} | ||
| {%- set formatted_name = formatted_name | replace('-', ' ') | capitalize | regex_replace('vm','VM') -%} | ||
| {%- endif -%} | ||
| {{ formatted_name }} | ||
| {%- endmacro -%} | ||
| name: {{ format_file_name(workflow.file_name, is_title=true) }} | ||
|
|
||
| on: | ||
| <%- if workflow.trigger is defined +%> | ||
| <%- for trigger_name in workflow.trigger.keys() +%> | ||
| <%- if trigger_name == 'schedule' +%> | ||
| {%- if workflow.trigger is defined +%} | ||
| {%- for trigger_name in workflow.trigger.keys() +%} | ||
| {%- if trigger_name == 'schedule' +%} | ||
| schedule: | ||
| - cron: '%% workflow.trigger['schedule']['cron'] %%' | ||
| <%- elif trigger_name == 'workflow_dispatch' +%> | ||
| - cron: '{{ workflow.trigger['schedule']['cron'] }}' | ||
| {%- elif trigger_name == 'workflow_dispatch' +%} | ||
| workflow_dispatch: | ||
| <%- if workflow.trigger['workflow_dispatch'] is not none +%> | ||
| {%- if workflow.trigger['workflow_dispatch'] is not none +%} | ||
| inputs: | ||
| %% workflow.trigger['workflow_dispatch'] | flatten | join('') | indent(6) | trim %% | ||
| <%- endif +%> | ||
| <%- endif +%> | ||
| <%- endfor +%> | ||
| <%- endif +%> | ||
| {{ workflow.trigger['workflow_dispatch'] | flatten | join('') | indent(6) | trim }} | ||
| {%- if github_environment_selector == 'input' +%} | ||
| {{ github_kayobe_environment_input | flatten | join('') | indent(6) | trim }} | ||
| {%- endif +%} | ||
| {%- endif +%} | ||
| {%- endif +%} | ||
| {%- endfor +%} | ||
| {%- endif -%} |
This file contains hidden or 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,28 @@ | ||
| name: %% format_file_name(workflow.file_name, is_title=true) %% | ||
|
|
||
| on: | ||
| workflow_call: | ||
| outputs: | ||
| openstack_release: | ||
| description: "The version of OpenStack/Kayobe to be used by the runner." | ||
| value: ${{ jobs.prepare-runner.outputs.openstack_release }} | ||
|
|
||
| jobs: | ||
| prepare-runner: | ||
| runs-on: %% github_runs_on %% | ||
| container: | ||
| image: alpine:latest | ||
| permissions: | ||
| contents: read | ||
| packages: read | ||
| outputs: | ||
| openstack_release: ${{ steps.openstack_release.outputs.openstack_release }} | ||
| steps: | ||
| - name: Checkout kayobe config | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Extract OpenStack Release | ||
| id: openstack_release | ||
| run: | | ||
| BRANCH=$(awk -F'=' '/defaultbranch/ {print $2}' .gitreview) | ||
| echo "openstack_release=${BRANCH}" | sed "s|stable/||" >> $GITHUB_OUTPUT |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.