fix drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paolo Asperti 2023-12-13 12:02:54 +01:00
parent 8c786b4594
commit 72b67b640d
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -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",