dont release dev tags tho
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Trabelsi 2022-04-23 19:12:13 +02:00
parent f719b7ade3
commit cce376cc4b
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
3 changed files with 73 additions and 18 deletions

55
.drone.star Normal file
View File

@ -0,0 +1,55 @@
def main(ctx):
return [
pipeline("debian", ["ubuntu-22.04", "ubuntu-20.04"]),
pipeline("rhel", ["fedora-34", "fedora-35"]),
]
def generateStep(tag):
return {
"name": "build-" + tag,
"image": "plugins/kaniko",
"settings": {
"dockerfile": tag + "/Dockerfile",
"password": {
"from_secret": "docker_password"
},
"username": {
"from_secret": "docker_username"
},
"repo": "lerentis/ansible",
"tags": [
tag
]
},
"when": {
"event": [
"push",
"pull_request",
"cron"
]
},
"ressources": {
"limits": {
"cpu": "200",
"memory": "1024MiB"
}
}
}
def pipeline(group, tags):
steps = []
for tag in tags:
steps += generateStep(tag)
print(generateStep(tag))
print(steps)
return {
"kind": "pipeline",
"type": "kubernetes",
"name": "build-%s" % group,
"platform": {
"os": "linux",
"arch": "amd64"
},
"steps": steps
}

View File

@ -422,7 +422,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- ubuntu-22.04-dev - ubuntu-22.04
when: when:
event: event:
- tag - tag
@ -441,7 +441,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- ubuntu-20.04-dev - ubuntu-20.04
when: when:
event: event:
- tag - tag
@ -460,7 +460,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- ubuntu-18.04-dev - ubuntu-18.04
when: when:
event: event:
- tag - tag
@ -479,7 +479,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- ubuntu-16.04-dev - ubuntu-16.04
when: when:
event: event:
- tag - tag
@ -498,7 +498,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- ubuntu-14.04-dev - ubuntu-14.04
when: when:
event: event:
- tag - tag
@ -517,7 +517,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- debian-8-dev - debian-8
when: when:
event: event:
- tag - tag
@ -536,7 +536,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- debian-9-dev - debian-9
when: when:
event: event:
- tag - tag
@ -555,7 +555,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- debian-10-dev - debian-10
when: when:
event: event:
- tag - tag
@ -586,7 +586,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- almalinux-8-dev - almalinux-8
when: when:
event: event:
- tag - tag
@ -605,7 +605,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- centos-7-dev - centos-7
when: when:
event: event:
- tag - tag
@ -624,7 +624,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- fedora-34-dev - fedora-34
when: when:
event: event:
- tag - tag
@ -643,7 +643,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- fedora-35-dev - fedora-35
when: when:
event: event:
- tag - tag
@ -662,7 +662,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- fedora-36-dev - fedora-36
when: when:
event: event:
- tag - tag
@ -681,7 +681,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- fedora-37-dev - fedora-37
when: when:
event: event:
- tag - tag
@ -712,7 +712,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- alpine-3.14-dev - alpine-3.14
when: when:
event: event:
- tag - tag
@ -731,7 +731,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- alpine-3.15-dev - alpine-3.15
when: when:
event: event:
- tag - tag
@ -762,7 +762,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- arch-dev - arch
when: when:
event: event:
- tag - tag

View File

@ -54,7 +54,7 @@ steps:
from_secret: docker_username from_secret: docker_username
repo: lerentis/ansible repo: lerentis/ansible
tags: tags:
- {{ tag }}-dev - {{ tag }}
when: when:
event: event:
- tag - tag