Prepend tags with tags= if written to a path that isn't .tags, to easier reference in actions

This commit is contained in:
Magnus Walbeck 2025-02-01 16:25:25 +01:00
parent 82df68ab4c
commit 51b8331ba7
Signed by: mwalbeck
SSH key fingerprint: SHA256:E7ZkPPw+zrr8Nxtu1Z908TRF7I0dNjNavoABIf49p4U
2 changed files with 4 additions and 1 deletions
determine_docker_tags
pyproject.toml

View file

@ -42,6 +42,9 @@ def determine_tags(
def write_tags_to_file(tags, path):
print(tags)
if path != ".tags":
tags = "tags=" + tags
with open(path, "w") as file:
file.write(tags)

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "determine-docker-tags"
version = "0.2.3"
version = "0.2.4"
description = "A small program to determine docker image tags"
authors = ["Magnus Walbeck <magnus.walbeck@walbeck.it>"]
readme = "README.md"