forked from spritsail/alpine
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
|
def main(ctx):
|
||
|
return [
|
||
|
step("3.8"),
|
||
|
step("3.9"),
|
||
|
step("3.10",["latest"]),
|
||
|
step("edge"),
|
||
|
]
|
||
|
|
||
|
def step(alpinever,tags=[]):
|
||
|
return {
|
||
|
"kind": "pipeline",
|
||
|
"name": "build-%s" % alpinever,
|
||
|
"steps": [
|
||
|
{
|
||
|
"name": "build",
|
||
|
"image": "spritsail/docker-build",
|
||
|
"pull": "always",
|
||
|
"settings": {
|
||
|
"repo": "alpine-dev-%s" % alpinever,
|
||
|
"build_args": [
|
||
|
"ALPINE_TAG=%s" % alpinever,
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
"name": "test",
|
||
|
"image": "spritsail/docker-test",
|
||
|
"pull": "always",
|
||
|
"settings": {
|
||
|
"repo": "spritsail/alpine",
|
||
|
"run": "su-exec nobody apk --version",
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
"name": "publish",
|
||
|
"image": "spritsail/docker-publish",
|
||
|
"pull": "always",
|
||
|
"settings": {
|
||
|
"from": "alpine-dev-%s" % alpinever,
|
||
|
"repo": "spritsail/alpine",
|
||
|
"tags": [alpinever] + tags,
|
||
|
},
|
||
|
"environment": {
|
||
|
"DOCKER_USERNAME": {
|
||
|
"from_secret": "docker_username",
|
||
|
},
|
||
|
"DOCKER_PASSWORD": {
|
||
|
"from_secret": "docker_password",
|
||
|
},
|
||
|
},
|
||
|
"when": {
|
||
|
"branch": ["master"],
|
||
|
"event": ["push"],
|
||
|
},
|
||
|
},
|
||
|
]
|
||
|
}
|
||
|
|