Skip to content

Commit

Permalink
Make non-master images last 15d instead of 3d
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdp7 committed Feb 3, 2025
1 parent 3aa5b48 commit 6e38f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def build_images_and_push():
tags = ["dirty"] if is_dirty() else [describe(False), describe(True)]
for tag in tags:
tag = re.sub(r"\W", "_", tag)
quay_expires_after = "never" if not is_dirty() and tag == "master" else "3d"
quay_expires_after = "never" if not is_dirty() and tag == "master" else "15d"
_run(["podman", "build", ".", "--build-arg", f"QUAY_EXPIRES_AFTER={quay_expires_after}", "-t", f"zqxjkcrud:{tag}"])
assert tag != "dirty", "attempting to push dirty image"
_run(["podman", "push", f"zqxjkcrud:{tag}", f"quay.io/alexpdp7/zqxjkcrud:{tag}"])
Expand Down

0 comments on commit 6e38f17

Please sign in to comment.