ci: install config manager on fedora
This commit is contained in:
1 parent
be1b54ba33
commit
faec667ff9
10 files changed
+67
-4
No files matched your search
@@ -19,6 +19,12 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:33"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
|
||||
|
||||
@@ -21,6 +21,16 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:33"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf install -y 'dnf-command(config-manager)'
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf config-manager --set-enabled powertools
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -10,6 +10,12 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:33"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
|
||||
|
||||
@@ -19,6 +19,12 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:34"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
|
||||
|
||||
@@ -21,6 +21,16 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:34"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf install -y 'dnf-command(config-manager)'
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf config-manager --set-enabled powertools
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -10,6 +10,12 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:34"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
|
||||
|
||||
@@ -19,6 +19,12 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:35"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
|
||||
|
||||
@@ -21,6 +21,16 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:35"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf install -y 'dnf-command(config-manager)'
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf config-manager --set-enabled powertools
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -10,6 +10,12 @@ jobs:
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:35"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Enable GH CLI repo"
|
||||
shell: bash
|
||||
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
|
||||
|
||||
@@ -508,7 +508,7 @@ cargo build --all --release""",
|
||||
steps += [RunStep("Install GH CLI", f"{sudo} apt install gh")]
|
||||
|
||||
if self.container:
|
||||
if self.container == "centos:8":
|
||||
if ("fedora" in self.container) or ("centos" in self.container):
|
||||
steps += [
|
||||
RunStep(
|
||||
"Install config manager",
|
||||
@@ -518,9 +518,6 @@ cargo build --all --release""",
|
||||
"Enable PowerTools",
|
||||
"dnf config-manager --set-enabled powertools",
|
||||
),
|
||||
]
|
||||
if ("fedora" in self.container) or ("centos" in self.container):
|
||||
steps += [
|
||||
RunStep(
|
||||
"Enable GH CLI repo",
|
||||
"dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo",
|
||||
|
||||
Reference in new issue
Block a user