2 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
3 changed files with 8 additions and 18 deletions

View File

@ -1,13 +1,14 @@
def main(ctx): def main(ctx):
return [ return [
step("3.8"),
step("3.9"),
step("3.10"), step("3.10"),
step("3.11",["latest"]), step("3.11"),
step("3.12"),
step("3.13",["latest"]),
step("edge"), step("edge"),
] ]
def step(alpinever,tags=[]): def step(alpinever,tags=[]):
vertest = "grep -q '%s' /etc/alpine-release && " % alpinever if alpinever != "edge" else ""
return { return {
"kind": "pipeline", "kind": "pipeline",
"name": "build-%s" % alpinever, "name": "build-%s" % alpinever,
@ -17,7 +18,6 @@ def step(alpinever,tags=[]):
"image": "spritsail/docker-build", "image": "spritsail/docker-build",
"pull": "always", "pull": "always",
"settings": { "settings": {
"repo": "alpine-dev-%s" % alpinever,
"build_args": [ "build_args": [
"ALPINE_TAG=%s" % alpinever, "ALPINE_TAG=%s" % alpinever,
], ],
@ -28,8 +28,7 @@ def step(alpinever,tags=[]):
"image": "spritsail/docker-test", "image": "spritsail/docker-test",
"pull": "always", "pull": "always",
"settings": { "settings": {
"repo": "spritsail/alpine", "run": vertest + "su-exec nobody apk --version",
"run": "su-exec nobody apk --version",
}, },
}, },
{ {
@ -37,17 +36,10 @@ def step(alpinever,tags=[]):
"image": "spritsail/docker-publish", "image": "spritsail/docker-publish",
"pull": "always", "pull": "always",
"settings": { "settings": {
"from": "alpine-dev-%s" % alpinever,
"repo": "spritsail/alpine", "repo": "spritsail/alpine",
"tags": [alpinever] + tags, "tags": [alpinever] + tags,
}, "username": {"from_secret": "docker_username"},
"environment": { "password": {"from_secret": "docker_password"},
"DOCKER_USERNAME": {
"from_secret": "docker_username",
},
"DOCKER_PASSWORD": {
"from_secret": "docker_password",
},
}, },
"when": { "when": {
"branch": ["master"], "branch": ["master"],

View File

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

View File

@ -13,5 +13,3 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/spritsail/alpine.svg)][hub] [![Docker Pulls](https://img.shields.io/docker/pulls/spritsail/alpine.svg)][hub]
[![Build Status](https://drone.spritsail.io/api/badges/spritsail/alpine/status.svg)][drone] [![Build Status](https://drone.spritsail.io/api/badges/spritsail/alpine/status.svg)][drone]
change :)