2
0
mirror of https://github.com/spritsail/alpine.git synced 2025-06-14 15:11:12 +00:00

4 Commits

Author SHA1 Message Date
a2a596cfc4 Update to alpine:3.13
Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-20 17:53:57 +00:00
7d52c725e4 Update to alpine:3.12
Signed-off-by: Joe Groocock <me@frebib.net>
2020-06-13 16:36:20 +01:00
c936978f39 Update to alpine:3.10
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-08 19:37:08 +00:00
42dc788197 Replace .drone.yml with Starlark 2020-01-08 19:35:27 +00:00
2 changed files with 11 additions and 43 deletions

View File

@ -1,14 +1,14 @@
def main(ctx):
versions = [
["3.9",[]],
["3.10",[]],
["3.11", ["latest"]],
["edge", []],
["chrislane", ["😍"]],
return [
step("3.10"),
step("3.11"),
step("3.12"),
step("3.13",["latest"]),
step("edge"),
]
return [step(v[0], v[1]) for v in versions] + [notify(["build-%s" % v for v, _ in versions])]
def step(alpinever,tags=[]):
vertest = "grep -q '%s' /etc/alpine-release && " % alpinever if alpinever != "edge" else ""
return {
"kind": "pipeline",
"name": "build-%s" % alpinever,
@ -18,7 +18,6 @@ def step(alpinever,tags=[]):
"image": "spritsail/docker-build",
"pull": "always",
"settings": {
"repo": "alpine-dev-%s" % alpinever,
"build_args": [
"ALPINE_TAG=%s" % alpinever,
],
@ -29,8 +28,7 @@ def step(alpinever,tags=[]):
"image": "spritsail/docker-test",
"pull": "always",
"settings": {
"repo": "spritsail/alpine",
"run": "su-exec nobody apk --version",
"run": vertest + "su-exec nobody apk --version",
},
},
{
@ -38,17 +36,10 @@ def step(alpinever,tags=[]):
"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",
},
"username": {"from_secret": "docker_username"},
"password": {"from_secret": "docker_password"},
},
"when": {
"branch": ["master"],
@ -58,26 +49,3 @@ def step(alpinever,tags=[]):
]
}
def notify(versions):
return {
"kind": "pipeline",
"name": "notify",
"depends_on": versions,
"when": {
"status": [ "success", "failure" ],
},
"steps": [
{
"name": "notify",
"image": "spritsail/notify",
"environment": {
"WEBHOOK_URL": {
"from_secret": "webhook_url",
},
"NOTIFY_TOKEN": {
"from_secret": "notify_token",
},
},
},
],
}

View File

@ -1,4 +1,4 @@
ARG ALPINE_TAG=3.11
ARG ALPINE_TAG=3.13
FROM alpine:$ALPINE_TAG