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

1 Commits

Author SHA1 Message Date
3c5d406a62 Update 'README.md'
adam smellz
2020-01-13 22:24:10 +00:00
3 changed files with 18 additions and 8 deletions

View File

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

View File

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

View File

@ -13,3 +13,5 @@
[![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]
change :)