docker-atlassian-confluence.../pipelines-generator.py
Eugene Ivantsov fa7f3f1a20 Merged in CLIP-1880-stop-building-jdk11-eap (pull request #164)
CLIP-1880: Stop building JDK11 EAP tags

* CLIP-1880: Stop building JDK11 EAP tags


Approved-by: Jun Jeong
Approved-by: Minh Tran
2024-05-21 00:34:40 +00:00

74 lines
2.1 KiB
Python
Executable File

from pathlib import Path
import os
import jinja2 as j2
TEMPLATE_FILE = 'bitbucket-pipelines.yml.j2'
REPOS = ['atlassian/confluence']
images = {
'Confluence': {
"11-default": {
'start_version': '7.19',
'end_version': '8.3',
'default_release': True,
'default_eap': False,
'base_image': 'eclipse-temurin:11',
'tag_suffixes': ['jdk11','ubuntu-jdk11'],
'dockerfile': 'Dockerfile',
'docker_repos': REPOS,
},
11: {
'start_version': '8.3',
'end_version': '9.0',
'default_release': False,
'default_eap': False,
'base_image': 'eclipse-temurin:11',
'tag_suffixes': ['jdk11','ubuntu-jdk11'],
'dockerfile': 'Dockerfile',
'docker_repos': REPOS,
},
17: {
'start_version': '8.0',
'end_version': '8.3',
'default_release': False,
'default_eap': True,
'base_image': 'eclipse-temurin:17',
'tag_suffixes': ['jdk17','ubuntu-jdk17'],
'dockerfile': 'Dockerfile',
'docker_repos': REPOS,
},
"17-default": {
'start_version': '8.3',
'default_release': True,
'default_eap': True,
'base_image': 'eclipse-temurin:17',
'tag_suffixes': ['jdk17','ubuntu-jdk17'],
'dockerfile': 'Dockerfile',
'docker_repos': REPOS,
},
"17-ubi": {
'start_version': '8.5.6',
'default_release': False,
'base_image': 'registry.access.redhat.com/ubi9/openjdk-17',
'tag_suffixes': ['ubi9','ubi9-jdk17'],
'dockerfile': 'Dockerfile.ubi',
'docker_repos': REPOS,
}
},
}
def main():
jenv = j2.Environment(
loader=j2.FileSystemLoader('.'),
lstrip_blocks=True,
trim_blocks=True)
template = jenv.get_template(TEMPLATE_FILE)
generated_output = template.render(images=images, batches=8)
print(generated_output)
if __name__ == '__main__':
main()