Skip to content

Commit

Permalink
Merge pull request #444 from camptocamp/push-latest-github
Browse files Browse the repository at this point in the history
The latest image on specific server should also be re tagged
  • Loading branch information
sbrunner authored Feb 15, 2022
2 parents 9aedcb2 + 2090179 commit c0a6e0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions c2cciutils/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ def docker(
],
check=True,
)
if latest:
subprocess.run(
["docker", "tag", f"{image_config['name']}:{tag_src}", f"{config['server']}/{image_config['name']}:{tag_src}"],
check=True,
)
subprocess.run(
[
"docker",
Expand Down

0 comments on commit c0a6e0a

Please sign in to comment.