Compare commits
No commits in common. "71ec30a2848be43798f7e1263bc70f6129466f66" and "7b3c9273135670bde9607775ce63d47f670dd1c5" have entirely different histories.
71ec30a284
...
7b3c927313
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
@ -2,8 +2,6 @@ name: E2E
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 0'
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
2
.github/workflows/ubuntu.yml
vendored
2
.github/workflows/ubuntu.yml
vendored
@ -2,8 +2,6 @@ name: Ubuntu
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 0'
|
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- ".github/workflows/images-*"
|
- ".github/workflows/images-*"
|
||||||
|
@ -79,41 +79,32 @@ func (centos CentOS) runs() (commands []string) {
|
|||||||
// TODO refactor
|
// TODO refactor
|
||||||
switch centos.release {
|
switch centos.release {
|
||||||
case "6":
|
case "6":
|
||||||
repofmt := "[6.%d-%s]\\n" +
|
repofmt := "[6.%d-%s]\\nbaseurl=https://vault.centos.org/6.%d/%s/$basearch/\\ngpgcheck=0"
|
||||||
"name=6.%d-%s\\n" +
|
|
||||||
"baseurl=https://vault.centos.org/6.%d/%s/$basearch/\\n" +
|
|
||||||
"gpgcheck=0"
|
|
||||||
for i := 0; i <= 10; i++ {
|
for i := 0; i <= 10; i++ {
|
||||||
repos = append(repos, fmt.Sprintf(repofmt, i, "os", i, "os", i, "os"))
|
repos = append(repos, fmt.Sprintf(repofmt, i, "os", i, "os"))
|
||||||
repos = append(repos, fmt.Sprintf(repofmt, i, "updates", i, "updates", i, "updates"))
|
repos = append(repos, fmt.Sprintf(repofmt, i, "updates", i, "updates"))
|
||||||
}
|
}
|
||||||
cmdf("rm /etc/yum.repos.d/*")
|
cmdf("rm /etc/yum.repos.d/*")
|
||||||
case "7":
|
case "7":
|
||||||
repofmt := "[%s-%s]\\n" +
|
repofmt := "[%s-%s]\\nbaseurl=https://vault.centos.org/%s/%s/$basearch/\\ngpgcheck=0"
|
||||||
"name=%s-%s\\n" +
|
|
||||||
"baseurl=https://vault.centos.org/%s/%s/$basearch/\\n" +
|
|
||||||
"gpgcheck=0"
|
|
||||||
for _, ver := range []string{
|
for _, ver := range []string{
|
||||||
"7.0.1406", "7.1.1503", "7.2.1511",
|
"7.0.1406", "7.1.1503", "7.2.1511",
|
||||||
"7.3.1611", "7.4.1708", "7.5.1804",
|
"7.3.1611", "7.4.1708", "7.5.1804",
|
||||||
"7.6.1810", "7.7.1908", "7.8.2003",
|
"7.6.1810", "7.7.1908", "7.8.2003",
|
||||||
"7.9.2009",
|
"7.9.2009",
|
||||||
} {
|
} {
|
||||||
repos = append(repos, fmt.Sprintf(repofmt, ver, "os", ver, "os", ver, "os"))
|
repos = append(repos, fmt.Sprintf(repofmt, ver, "os", ver, "os"))
|
||||||
repos = append(repos, fmt.Sprintf(repofmt, ver, "updates", ver, "updates", ver, "updates"))
|
repos = append(repos, fmt.Sprintf(repofmt, ver, "updates", ver, "updates"))
|
||||||
}
|
}
|
||||||
case "8":
|
case "8":
|
||||||
repofmt := "[%s-%s]\\n" +
|
repofmt := "[%s-%s]\\nbaseurl=https://vault.centos.org/%s/%s/$basearch/os/\\ngpgcheck=0"
|
||||||
"name=%s-%s\\n" +
|
|
||||||
"baseurl=https://vault.centos.org/%s/%s/$basearch/os/\\n" +
|
|
||||||
"gpgcheck=0"
|
|
||||||
|
|
||||||
for _, ver := range []string{
|
for _, ver := range []string{
|
||||||
"8.0.1905", "8.1.1911", "8.2.2004",
|
"8.0.1905", "8.1.1911", "8.2.2004",
|
||||||
"8.3.2011", "8.4.2105", "8.5.2111",
|
"8.3.2011", "8.4.2105", "8.5.2111",
|
||||||
} {
|
} {
|
||||||
repos = append(repos, fmt.Sprintf(repofmt, ver, "baseos", ver, "baseos", ver, "BaseOS"))
|
repos = append(repos, fmt.Sprintf(repofmt, ver, "baseos", ver, "BaseOS"))
|
||||||
repos = append(repos, fmt.Sprintf(repofmt, ver, "appstream", ver, "appstream", ver, "AppStream"))
|
repos = append(repos, fmt.Sprintf(repofmt, ver, "appstream", ver, "AppStream"))
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
log.Fatal().Msgf("no support for centos %s", centos.release)
|
log.Fatal().Msgf("no support for centos %s", centos.release)
|
||||||
|
Loading…
Reference in New Issue
Block a user