2021-03-23 04:43:13 +00:00
|
|
|
|
|
|
|
from pathlib import Path
|
|
|
|
import os
|
|
|
|
import jinja2 as j2
|
|
|
|
|
|
|
|
TEMPLATE_FILE = 'bitbucket-pipelines.yml.j2'
|
2022-03-15 02:49:50 +00:00
|
|
|
REPOS = ['atlassian/confluence', 'atlassian/confluence-server']
|
2021-03-23 04:43:13 +00:00
|
|
|
|
|
|
|
images = {
|
2021-07-14 23:14:53 +00:00
|
|
|
'Confluence': {
|
2021-03-23 04:43:13 +00:00
|
|
|
11: {
|
2022-03-08 06:02:59 +00:00
|
|
|
'start_version': '7.4',
|
2021-03-23 04:43:13 +00:00
|
|
|
'default_release': True,
|
2022-06-21 12:19:12 +00:00
|
|
|
'base_image': 'eclipse-temurin:11',
|
|
|
|
'tag_suffixes': ['jdk11','ubuntu-jdk11'],
|
2021-03-23 04:43:13 +00:00
|
|
|
'dockerfile': 'Dockerfile',
|
|
|
|
'docker_repos': REPOS,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
jenv = j2.Environment(
|
|
|
|
loader=j2.FileSystemLoader('.'),
|
|
|
|
lstrip_blocks=True,
|
|
|
|
trim_blocks=True)
|
|
|
|
template = jenv.get_template(TEMPLATE_FILE)
|
2022-03-16 03:41:23 +00:00
|
|
|
generated_output = template.render(images=images, batches=8)
|
2021-03-23 04:43:13 +00:00
|
|
|
|
|
|
|
print(generated_output)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|