Skip to content
Snippets Groups Projects
Commit 448c42c004b2 authored by Georges Racinet's avatar Georges Racinet :squid:
Browse files

release-full: output a draft twitt message

parent 6b5aa7d98445
No related branches found
No related tags found
No related merge requests found
Pipeline #87219 passed
......@@ -9,6 +9,15 @@
logger = logging.getLogger(FILE_PATH.name.rsplit('.', 1)[0])
TWITT_TEMPLATE = (
"registry-pull-heptapod-push-docker#heptapod {version} "
"released, COMMENT_HERE "
"Docker: https://hub.docker.com/r/heptapod/heptapod/"
"tags?name={version} Changelog: "
"https://foss.heptapod.net/heptapod/heptapod/-/blob/heptapod-{version}/"
"HEPTAPOD_CHANGELOG.md #git #mercurial"
)
def validate_sha256(s):
assert len(s) == 64
......@@ -33,7 +42,7 @@
build_version = s
dash_series = '-'.join(version.split('.', 2)[:2])
return build_version, dash_series
return version, build_version, dash_series
def main():
......@@ -50,7 +59,7 @@
cl_args = parser.parse_args()
logging.basicConfig(level=getattr(logging, cl_args.logging_level.upper()))
build_version, dash_series = parse_version(cl_args.version)
version, build_version, dash_series = parse_version(cl_args.version)
image_testing_tag = dash_series + '-testing'
omnibus_tag = 'heptapod-' + build_version
......@@ -78,7 +87,9 @@
push_release.append('--latest')
subprocess.check_call(push_release)
print("Now brag about it on social media, inserting additional comments "
"into the following:\n")
print(TWITT_TEMPLATE.format(version=version))
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment