mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-29 22:10:51 +00:00
Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34b21fccff | ||
|
|
9f66db2174 | ||
|
|
d4c5353eb0 | ||
|
|
42c0322b17 |
18 changed files with 86 additions and 197 deletions
|
|
@ -39,12 +39,14 @@ reviews:
|
||||||
mode: "warning"
|
mode: "warning"
|
||||||
requirements: |
|
requirements: |
|
||||||
PR title MUST follow Conventional Commits format:
|
PR title MUST follow Conventional Commits format:
|
||||||
- Format: <type>: <description> or <type>!: <description> for breaking changes
|
- Format: <required type><optional (scope)><optional !>: <required description>
|
||||||
- Valid types: Refer to the 'type-enum' rule in .commitlintrc.js file for the complete list of allowed types
|
- Valid types: Refer to https://github.com/linux-system-roles/auto-maintenance/blob/main/pr_title_lint.py#L23
|
||||||
- Examples:
|
- Examples:
|
||||||
- "feat: Add backup functionality"
|
- "feat: Add backup functionality"
|
||||||
- "fix: Correct OSTree package installation"
|
- "fix: Correct OSTree package installation"
|
||||||
- "fix!: Remove deprecated variable (breaking change)"
|
- "fix!: Remove deprecated variable (breaking change)"
|
||||||
|
- "chore(formatting): Fix indentation in my_module.py"
|
||||||
|
- "refactor(python)!: Use new python library thispy which has breaking api changes"
|
||||||
|
|
||||||
custom_checks:
|
custom_checks:
|
||||||
- mode: "warning"
|
- mode: "warning"
|
||||||
|
|
@ -55,6 +57,8 @@ reviews:
|
||||||
- Must contain "Reason:" section explaining why the change was needed
|
- Must contain "Reason:" section explaining why the change was needed
|
||||||
- Must contain "Result:" section describing the outcome or impact
|
- Must contain "Result:" section describing the outcome or impact
|
||||||
- Can contain optional "Issue Tracker Tickets (Jira or BZ if any):" section
|
- Can contain optional "Issue Tracker Tickets (Jira or BZ if any):" section
|
||||||
|
- Must contain "Signed-off-by:" section with your name and email address - use git commit -s
|
||||||
|
- Can contain optional "Assisted-by:" section with name of the AI coding assistant and models used
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
|
|
@ -65,6 +69,34 @@ reviews:
|
||||||
Result: Users can now set network_secure_logging: false for debugging while maintaining secure defaults.
|
Result: Users can now set network_secure_logging: false for debugging while maintaining secure defaults.
|
||||||
|
|
||||||
Issue Tracker Tickets (Jira or BZ if any): RHEL-12345
|
Issue Tracker Tickets (Jira or BZ if any): RHEL-12345
|
||||||
|
|
||||||
|
Signed-off-by: John Doe john.doe@example.com
|
||||||
|
|
||||||
|
Assisted-by: Fish 4.3 using model Swim 6.2
|
||||||
|
```
|
||||||
|
|
||||||
|
For PRs that are bug fixes, you can use the following template:
|
||||||
|
- Must contain "Cause:" section explaining the root cause of the bug
|
||||||
|
- Must contain "Consequences:" section explaining the impact of the bug and how it appears to users
|
||||||
|
- Must contain "Fix:" section explaining the fix for the bug and how it fixes the bug
|
||||||
|
- Must contain "Result:" section describing the outcome or impact of the fix
|
||||||
|
- Can contain optional "Issue Tracker Tickets (Jira or BZ if any):" section
|
||||||
|
- Must contain "Signed-off-by:" section with your name and email address - use git commit -s
|
||||||
|
- Can contain optional "Assisted-by:" section with name of the AI coding assistant and models used
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
Cause: The variable rolename_user_name was being checked for a `none` value but was not being checked for string length greater than 0 if a string.
|
||||||
|
|
||||||
|
Consequences: The role allowed empty user names to be configured which caused the daemon to report "User not found".
|
||||||
|
|
||||||
|
Fix: The variable rolename_user_name is now checked for string length if not `none`, and will report an error in that case if the length is 0.
|
||||||
|
|
||||||
|
Result: The role will not allow the user to provide an empty user name and will report an error if the rolename_user_name length is 0.
|
||||||
|
|
||||||
|
Signed-off-by: John Doe john.doe@example.com
|
||||||
|
|
||||||
|
Assisted-by: Fish 4.3 using model Swim 6.2
|
||||||
```
|
```
|
||||||
|
|
||||||
path_instructions:
|
path_instructions:
|
||||||
|
|
@ -180,6 +212,8 @@ reviews:
|
||||||
- Tests should verify both success and failure scenarios
|
- Tests should verify both success and failure scenarios
|
||||||
- Use assert module to verify expected state after role execution
|
- Use assert module to verify expected state after role execution
|
||||||
- Include cleanup tasks to ensure tests are rerunnable
|
- Include cleanup tasks to ensure tests are rerunnable
|
||||||
|
- Tests should be run in a block with an always section that runs the test cleanup to ensure that the cleanup is always run.
|
||||||
|
- The cleanup tasks should be tagged with `tests::cleanup` so that the cleanup can be skipped for debug purposes.
|
||||||
- Tests should be idempotent - running twice should not cause failures
|
- Tests should be idempotent - running twice should not cause failures
|
||||||
- Example verification:
|
- Example verification:
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
141
.commitlintrc.js
141
.commitlintrc.js
|
|
@ -1,141 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
parserPreset: 'conventional-changelog-conventionalcommits',
|
|
||||||
rules: {
|
|
||||||
'body-leading-blank': [1, 'always'],
|
|
||||||
'body-max-line-length': [2, 'always', 100],
|
|
||||||
'footer-leading-blank': [1, 'always'],
|
|
||||||
'footer-max-line-length': [2, 'always', 100],
|
|
||||||
'header-max-length': [2, 'always', 100],
|
|
||||||
'subject-case': [
|
|
||||||
2,
|
|
||||||
'never',
|
|
||||||
['start-case', 'pascal-case', 'upper-case'],
|
|
||||||
],
|
|
||||||
'subject-empty': [2, 'never'],
|
|
||||||
'subject-full-stop': [2, 'never', '.'],
|
|
||||||
'type-case': [2, 'always', 'lower-case'],
|
|
||||||
'type-empty': [2, 'never'],
|
|
||||||
'type-enum': [
|
|
||||||
2,
|
|
||||||
'always',
|
|
||||||
[
|
|
||||||
'build',
|
|
||||||
'chore',
|
|
||||||
'ci',
|
|
||||||
'docs',
|
|
||||||
'feat',
|
|
||||||
'fix',
|
|
||||||
'perf',
|
|
||||||
'refactor',
|
|
||||||
'revert',
|
|
||||||
'style',
|
|
||||||
'test',
|
|
||||||
'tests',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
},
|
|
||||||
prompt: {
|
|
||||||
questions: {
|
|
||||||
type: {
|
|
||||||
description: "Select the type of change that you're committing",
|
|
||||||
enum: {
|
|
||||||
feat: {
|
|
||||||
description: 'A new feature',
|
|
||||||
title: 'Features',
|
|
||||||
emoji: '✨',
|
|
||||||
},
|
|
||||||
fix: {
|
|
||||||
description: 'A bug fix',
|
|
||||||
title: 'Bug Fixes',
|
|
||||||
emoji: '🐛',
|
|
||||||
},
|
|
||||||
docs: {
|
|
||||||
description: 'Documentation only changes',
|
|
||||||
title: 'Documentation',
|
|
||||||
emoji: '📚',
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
description:
|
|
||||||
'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
|
|
||||||
title: 'Styles',
|
|
||||||
emoji: '💎',
|
|
||||||
},
|
|
||||||
refactor: {
|
|
||||||
description:
|
|
||||||
'A code change that neither fixes a bug nor adds a feature',
|
|
||||||
title: 'Code Refactoring',
|
|
||||||
emoji: '📦',
|
|
||||||
},
|
|
||||||
perf: {
|
|
||||||
description: 'A code change that improves performance',
|
|
||||||
title: 'Performance Improvements',
|
|
||||||
emoji: '🚀',
|
|
||||||
},
|
|
||||||
test: {
|
|
||||||
description: 'Adding missing tests or correcting existing tests',
|
|
||||||
title: 'Tests',
|
|
||||||
emoji: '🚨',
|
|
||||||
},
|
|
||||||
tests: {
|
|
||||||
description: 'Adding missing tests or correcting existing tests',
|
|
||||||
title: 'Tests',
|
|
||||||
emoji: '🚨',
|
|
||||||
},
|
|
||||||
build: {
|
|
||||||
description:
|
|
||||||
'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',
|
|
||||||
title: 'Builds',
|
|
||||||
emoji: '🛠',
|
|
||||||
},
|
|
||||||
ci: {
|
|
||||||
description:
|
|
||||||
'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)',
|
|
||||||
title: 'Continuous Integrations',
|
|
||||||
emoji: '⚙️',
|
|
||||||
},
|
|
||||||
chore: {
|
|
||||||
description: "Other changes that don't modify src or test files",
|
|
||||||
title: 'Chores',
|
|
||||||
emoji: '♻️',
|
|
||||||
},
|
|
||||||
revert: {
|
|
||||||
description: 'Reverts a previous commit',
|
|
||||||
title: 'Reverts',
|
|
||||||
emoji: '🗑',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
scope: {
|
|
||||||
description:
|
|
||||||
'What is the scope of this change (e.g. component or file name)',
|
|
||||||
},
|
|
||||||
subject: {
|
|
||||||
description:
|
|
||||||
'Write a short, imperative tense description of the change',
|
|
||||||
},
|
|
||||||
body: {
|
|
||||||
description: 'Provide a longer description of the change',
|
|
||||||
},
|
|
||||||
isBreaking: {
|
|
||||||
description: 'Are there any breaking changes?',
|
|
||||||
},
|
|
||||||
breakingBody: {
|
|
||||||
description:
|
|
||||||
'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself',
|
|
||||||
},
|
|
||||||
breaking: {
|
|
||||||
description: 'Describe the breaking changes',
|
|
||||||
},
|
|
||||||
isIssueAffected: {
|
|
||||||
description: 'Does this change affect any open issues?',
|
|
||||||
},
|
|
||||||
issuesBody: {
|
|
||||||
description:
|
|
||||||
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself',
|
|
||||||
},
|
|
||||||
issues: {
|
|
||||||
description: 'Add issue references (e.g. "fix #123", "re #123".)',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
4
.github/workflows/ansible-lint.yml
vendored
4
.github/workflows/ansible-lint.yml
vendored
|
|
@ -39,12 +39,12 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Install tox, tox-lsr
|
- name: Install tox, tox-lsr
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.18.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.20.1"
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,12 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Install tox, tox-lsr
|
- name: Install tox, tox-lsr
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.18.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.20.1"
|
||||||
|
|
||||||
- name: Run ansible-plugin-scan
|
- name: Run ansible-plugin-scan
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
4
.github/workflows/ansible-test.yml
vendored
4
.github/workflows/ansible-test.yml
vendored
|
|
@ -42,12 +42,12 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Install tox, tox-lsr
|
- name: Install tox, tox-lsr
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.18.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.20.1"
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
|
|
|
||||||
6
.github/workflows/build_docs.yml
vendored
6
.github/workflows/build_docs.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Ensure the docs branch
|
- name: Ensure the docs branch
|
||||||
|
|
@ -48,12 +48,12 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Checkout the docs branch
|
- name: Checkout the docs branch
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: docs
|
ref: docs
|
||||||
|
|
||||||
- name: Fetch README.md and .pandoc_template.html5 template from the workflow branch
|
- name: Fetch README.md and .pandoc_template.html5 template from the workflow branch
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
README.md
|
README.md
|
||||||
|
|
|
||||||
2
.github/workflows/changelog_to_tag.yml
vendored
2
.github/workflows/changelog_to_tag.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: checkout PR
|
- name: checkout PR
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Get tag and message from the latest CHANGELOG.md commit
|
- name: Get tag and message from the latest CHANGELOG.md commit
|
||||||
id: tag
|
id: tag
|
||||||
|
|
|
||||||
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
|
|
@ -34,7 +34,7 @@ jobs:
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v4
|
uses: github/codeql-action/init@v4
|
||||||
|
|
|
||||||
2
.github/workflows/codespell.yml
vendored
2
.github/workflows/codespell.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Codespell
|
- name: Codespell
|
||||||
uses: codespell-project/actions-codespell@v2
|
uses: codespell-project/actions-codespell@v2
|
||||||
|
|
|
||||||
2
.github/workflows/markdownlint.yml
vendored
2
.github/workflows/markdownlint.yml
vendored
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
# CHANGELOG.md is generated automatically from PR titles and descriptions
|
# CHANGELOG.md is generated automatically from PR titles and descriptions
|
||||||
# It might have issues but they are not critical
|
# It might have issues but they are not critical
|
||||||
|
|
|
||||||
10
.github/workflows/pr-title-lint.yml
vendored
10
.github/workflows/pr-title-lint.yml
vendored
|
|
@ -18,15 +18,15 @@ jobs:
|
||||||
commit-checks:
|
commit-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install conventional-commit linter
|
- name: Install pr_title_lint.py
|
||||||
run: npm install @commitlint/config-conventional @commitlint/cli
|
run: curl -o pr_title_lint.py https://raw.githubusercontent.com/linux-system-roles/auto-maintenance/main/pr_title_lint.py
|
||||||
|
|
||||||
- name: Run commitlint on PR title
|
- name: Run pr_title_lint.py on PR title
|
||||||
env:
|
env:
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
# Echo from env variable to avoid bash errors with extra characters
|
# Echo from env variable to avoid bash errors with extra characters
|
||||||
run: echo "$PR_TITLE" | npx commitlint --verbose
|
run: python3 pr_title_lint.py "${PR_TITLE}"
|
||||||
|
|
|
||||||
6
.github/workflows/python-unit-test.yml
vendored
6
.github/workflows/python-unit-test.yml
vendored
|
|
@ -43,7 +43,7 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: checkout PR
|
- name: checkout PR
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Python 2.7
|
- name: Set up Python 2.7
|
||||||
if: ${{ matrix.pyver_os.ver == '2.7' }}
|
if: ${{ matrix.pyver_os.ver == '2.7' }}
|
||||||
|
|
@ -70,7 +70,7 @@ jobs:
|
||||||
tox=tox
|
tox=tox
|
||||||
virtualenv=virtualenv
|
virtualenv=virtualenv
|
||||||
fi
|
fi
|
||||||
pip install "$tox" "$virtualenv" "git+https://github.com/linux-system-roles/tox-lsr@3.18.1"
|
pip install "$tox" "$virtualenv" "git+https://github.com/linux-system-roles/tox-lsr@3.20.1"
|
||||||
# If you have additional OS dependency packages e.g. libcairo2-dev
|
# If you have additional OS dependency packages e.g. libcairo2-dev
|
||||||
# then put them in .github/config/ubuntu-requirements.txt, one
|
# then put them in .github/config/ubuntu-requirements.txt, one
|
||||||
# package per line.
|
# package per line.
|
||||||
|
|
@ -92,4 +92,4 @@ jobs:
|
||||||
TOXENV="$toxenvs" lsr_ci_runtox
|
TOXENV="$toxenvs" lsr_ci_runtox
|
||||||
|
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v6
|
uses: codecov/codecov-action@v7
|
||||||
|
|
|
||||||
44
.github/workflows/qemu-kvm-integration-tests.yml
vendored
44
.github/workflows/qemu-kvm-integration-tests.yml
vendored
|
|
@ -30,8 +30,8 @@ jobs:
|
||||||
# QEMU
|
# QEMU
|
||||||
- { image: "centos-9", env: "qemu-ansible-core-2-16" }
|
- { image: "centos-9", env: "qemu-ansible-core-2-16" }
|
||||||
- { image: "centos-10", env: "qemu-ansible-core-2-17" }
|
- { image: "centos-10", env: "qemu-ansible-core-2-17" }
|
||||||
- { image: "fedora-42", env: "qemu-ansible-core-2-19" }
|
|
||||||
- { image: "fedora-43", env: "qemu-ansible-core-2-20" }
|
- { image: "fedora-43", env: "qemu-ansible-core-2-20" }
|
||||||
|
- { image: "fedora-44", env: "qemu-ansible-core-2-21" }
|
||||||
- { image: "leap-15.6", env: "qemu-ansible-core-2-18" }
|
- { image: "leap-15.6", env: "qemu-ansible-core-2-18" }
|
||||||
|
|
||||||
# container
|
# container
|
||||||
|
|
@ -40,10 +40,11 @@ jobs:
|
||||||
# broken on non-running dbus
|
# broken on non-running dbus
|
||||||
# - { image: "centos-10", env: "container-ansible-core-2-17" }
|
# - { image: "centos-10", env: "container-ansible-core-2-17" }
|
||||||
- { image: "centos-10-bootc", env: "container-ansible-core-2-17" }
|
- { image: "centos-10-bootc", env: "container-ansible-core-2-17" }
|
||||||
- { image: "fedora-42", env: "container-ansible-core-2-17" }
|
|
||||||
- { image: "fedora-43", env: "container-ansible-core-2-20" }
|
- { image: "fedora-43", env: "container-ansible-core-2-20" }
|
||||||
- { image: "fedora-42-bootc", env: "container-ansible-core-2-17" }
|
- { image: "fedora-44", env: "container-ansible-core-2-21" }
|
||||||
- { image: "fedora-43-bootc", env: "container-ansible-core-2-20" }
|
- { image: "fedora-43-bootc", env: "container-ansible-core-2-20" }
|
||||||
|
# ansible-core 2.21 cannot enable services using service module in bootc images
|
||||||
|
- { image: "fedora-44-bootc", env: "container-ansible-core-2-20" }
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TOX_ARGS: "--skip-tags tests::infiniband,tests::nvme,tests::scsi"
|
TOX_ARGS: "--skip-tags tests::infiniband,tests::nvme,tests::scsi"
|
||||||
|
|
@ -51,7 +52,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Check if platform is supported
|
- name: Check if platform is supported
|
||||||
id: check_platform
|
id: check_platform
|
||||||
|
|
@ -110,29 +111,24 @@ jobs:
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y --no-install-recommends git ansible-core genisoimage qemu-system-x86
|
sudo apt install -y --no-install-recommends git ansible-core genisoimage qemu-system-x86
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.18.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.20.1"
|
||||||
|
|
||||||
# HACK: Drop this when moving this workflow to 26.04 LTS
|
- name: Check for podman version 5 or higher
|
||||||
- name: Update podman to 5.x for compatibility with bootc-image-builder's podman 5
|
id: check_podman_version
|
||||||
if: steps.check_platform.outputs.supported && endsWith(matrix.scenario.image, '-bootc')
|
if: steps.check_platform.outputs.supported
|
||||||
run: |
|
run: |
|
||||||
sed 's/noble/plucky/g' /etc/apt/sources.list.d/ubuntu.sources | sudo tee /etc/apt/sources.list.d/plucky.sources >/dev/null
|
podman_version=$(podman version -f '{{.Client.Version}}')
|
||||||
cat <<EOF | sudo tee /etc/apt/preferences.d/podman.pref >/dev/null
|
podman_major_version="${podman_version%%.*}"
|
||||||
Package: podman buildah golang-github-containers-common crun libgpgme11t64 libgpg-error0 golang-github-containers-image catatonit conmon containers-storage
|
echo "Podman version: $podman_version"
|
||||||
Pin: release n=plucky
|
if [ "$podman_major_version" -lt 5 ]; then
|
||||||
Pin-Priority: 991
|
echo "need_podman_update=1" >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo "need_podman_update=0" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
Package: libsubid4 netavark passt aardvark-dns containernetworking-plugins libslirp0 slirp4netns
|
- name: Ensure use of podman 5
|
||||||
Pin: release n=plucky
|
if: steps.check_platform.outputs.supported && steps.check_podman_version.outputs.need_podman_update == 1
|
||||||
Pin-Priority: 991
|
uses: redhat-actions/podman-install@main
|
||||||
|
|
||||||
Package: *
|
|
||||||
Pin: release n=plucky
|
|
||||||
Pin-Priority: 400
|
|
||||||
EOF
|
|
||||||
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y podman crun conmon containers-storage
|
|
||||||
|
|
||||||
- name: Configure tox-lsr
|
- name: Configure tox-lsr
|
||||||
if: steps.check_platform.outputs.supported
|
if: steps.check_platform.outputs.supported
|
||||||
|
|
|
||||||
2
.github/workflows/shellcheck.yml
vendored
2
.github/workflows/shellcheck.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Run ShellCheck
|
- name: Run ShellCheck
|
||||||
id: shellcheck_id
|
id: shellcheck_id
|
||||||
|
|
|
||||||
2
.github/workflows/test_converting_readme.yml
vendored
2
.github/workflows/test_converting_readme.yml
vendored
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Remove badges from README.md prior to converting to HTML
|
- name: Remove badges from README.md prior to converting to HTML
|
||||||
run: sed -i '1,8 {/^\[\!.*actions\/workflows/d}' README.md
|
run: sed -i '1,8 {/^\[\!.*actions\/workflows/d}' README.md
|
||||||
|
|
|
||||||
10
.github/workflows/tft.yml
vendored
10
.github/workflows/tft.yml
vendored
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Get head sha of the PR
|
- name: Get head sha of the PR
|
||||||
id: head_sha
|
id: head_sha
|
||||||
|
|
@ -49,7 +49,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Checkout PR
|
- name: Checkout PR
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.head_sha.outputs.head_sha }}
|
ref: ${{ steps.head_sha.outputs.head_sha }}
|
||||||
|
|
||||||
|
|
@ -72,8 +72,8 @@ jobs:
|
||||||
meta_main=meta/main.yml
|
meta_main=meta/main.yml
|
||||||
# All Fedora are supported, add latest Fedora versions to supported_platforms
|
# All Fedora are supported, add latest Fedora versions to supported_platforms
|
||||||
if yq '.galaxy_info.galaxy_tags[]' "$meta_main" | grep -qi fedora$; then
|
if yq '.galaxy_info.galaxy_tags[]' "$meta_main" | grep -qi fedora$; then
|
||||||
supported_platforms+=" Fedora-42"
|
|
||||||
supported_platforms+=" Fedora-43"
|
supported_platforms+=" Fedora-43"
|
||||||
|
supported_platforms+=" Fedora-44"
|
||||||
fi
|
fi
|
||||||
# Specific Fedora versions supported
|
# Specific Fedora versions supported
|
||||||
if yq '.galaxy_info.galaxy_tags[]' "$meta_main" | grep -qiP 'fedora\d+$'; then
|
if yq '.galaxy_info.galaxy_tags[]' "$meta_main" | grep -qiP 'fedora\d+$'; then
|
||||||
|
|
@ -99,10 +99,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Ensure ansible version is a string!
|
# Ensure ansible version is a string!
|
||||||
- platform: Fedora-42
|
|
||||||
ansible_version: "2.19"
|
|
||||||
- platform: Fedora-43
|
- platform: Fedora-43
|
||||||
ansible_version: "2.20"
|
ansible_version: "2.20"
|
||||||
|
- platform: Fedora-44
|
||||||
|
ansible_version: "2.21"
|
||||||
- platform: CentOS-7-latest
|
- platform: CentOS-7-latest
|
||||||
ansible_version: "2.9"
|
ansible_version: "2.9"
|
||||||
- platform: CentOS-Stream-8
|
- platform: CentOS-Stream-8
|
||||||
|
|
|
||||||
2
.github/workflows/weekly_ci.yml
vendored
2
.github/workflows/weekly_ci.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
|
|
||||||
- name: Checkout latest code
|
- name: Checkout latest code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Create or rebase commit, add dump_packages callback
|
- name: Create or rebase commit, add dump_packages callback
|
||||||
|
|
|
||||||
2
.github/workflows/woke.yml
vendored
2
.github/workflows/woke.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Run lsr-woke-action
|
- name: Run lsr-woke-action
|
||||||
# Originally, uses: get-woke/woke-action@v0
|
# Originally, uses: get-woke/woke-action@v0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue