This commit is contained in:
parent
8c786b4594
commit
72b67b640d
11
.drone.star
11
.drone.star
@ -5,7 +5,7 @@ def main(ctx):
|
||||
|
||||
out = []
|
||||
for arch in archs:
|
||||
out += onpush(ctx, glpi_version, arch)
|
||||
out += onpush(ctx, glpi_version, alpine_version, arch)
|
||||
|
||||
for arch in archs:
|
||||
out += build_publish(ctx, glpi_version, alpine_version, arch)
|
||||
@ -42,7 +42,7 @@ def onpush(ctx, glpi_version, alpine_version, arch):
|
||||
}
|
||||
}]
|
||||
|
||||
def build_publish(ctx, glpi_version, arch):
|
||||
def build_publish(ctx, glpi_version, alpine_version, arch):
|
||||
major = glpi_version.partition(".")[0];
|
||||
return [{
|
||||
"kind": "pipeline",
|
||||
@ -56,10 +56,11 @@ def build_publish(ctx, glpi_version, arch):
|
||||
"name": "build_on_push",
|
||||
"image": "plugins/docker:linux-%s" % (arch),
|
||||
"settings": {
|
||||
"context": ".",
|
||||
"dockerfile": "./Dockerfile",
|
||||
"context": "src",
|
||||
"dockerfile": "src/Dockerfile",
|
||||
"build_args": [
|
||||
"GLPI_VERSION=%s" % (glpi_version)
|
||||
"GLPI_VERSION=%s" % (glpi_version),
|
||||
"ALPINE_VERSION=%s" % (alpine_version)
|
||||
],
|
||||
"username": {
|
||||
"from_secret": "docker_username",
|
||||
|
Loading…
Reference in New Issue
Block a user