mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Updating to string replacements
This commit is contained in:
parent
b906042490
commit
2624df8e39
1 changed files with 15 additions and 13 deletions
|
@ -1,3 +1,15 @@
|
|||
local distros = [
|
||||
{ name: 'amazon', version: '1' },
|
||||
{ name: 'amazon', version: '2' },
|
||||
# { name: 'centos', version: '6' },
|
||||
{ name: 'centos', version: '7' },
|
||||
{ name: 'debian', version: '8' },
|
||||
{ name: 'debian', version: '9' },
|
||||
# { name: 'ubuntu', version: '1404' },
|
||||
# { name: 'ubuntu', version: '1604' },
|
||||
{ name: 'ubuntu', version: '1804' },
|
||||
];
|
||||
|
||||
local Shellcheck() = {
|
||||
kind: 'pipeline',
|
||||
name: 'run-shellcheck',
|
||||
|
@ -16,7 +28,7 @@ local Shellcheck() = {
|
|||
|
||||
local Build(os, os_version) = {
|
||||
kind: 'pipeline',
|
||||
name: 'build-' + os + '-' + os_version,
|
||||
name: std.format('build-%s-%s', [os, os_version]),
|
||||
|
||||
steps: [
|
||||
{
|
||||
|
@ -24,7 +36,7 @@ local Build(os, os_version) = {
|
|||
privileged: true,
|
||||
image: 'saltstack/drone-plugin-kitchen',
|
||||
settings: {
|
||||
target: os + '-' + os_version,
|
||||
target: std.format('%s-%s', [os, os_version]),
|
||||
requirements: 'tests/requirements.txt',
|
||||
},
|
||||
when: { event: ['pull_request'] },
|
||||
|
@ -35,16 +47,6 @@ local Build(os, os_version) = {
|
|||
]
|
||||
};
|
||||
|
||||
local distros = [
|
||||
{ name: 'amazon', version: '1' },
|
||||
{ name: 'amazon', version: '2' },
|
||||
# { name: 'centos', version: '6' },
|
||||
{ name: 'centos', version: '7' },
|
||||
{ name: 'debian', version: '8' },
|
||||
{ name: 'debian', version: '9' },
|
||||
# { name: 'ubuntu', version: '1404' },
|
||||
# { name: 'ubuntu', version: '1604' },
|
||||
{ name: 'ubuntu', version: '1804' },
|
||||
];
|
||||
|
||||
|
||||
[Shellcheck()] + [Build(distro.name, distro.version)for distro in distros]
|
||||
|
|
Loading…
Add table
Reference in a new issue