diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index 28d6411a..fcadc31f 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -31,11 +31,11 @@ jobs: import re from packaging.version import parse version = "${{ github.ref }}".replace("refs/tags/v", "") - print(version) image = "ghcr.io/${{ github.repository }}" tags = set() # full version - tags.add(f"{image}:{version}") + if not version == 'refs/heads/main': + tags.add(f"{image}:{version}") if version == 'refs/heads/main': tags.add(f"{image}:development") if not parse(version).is_prerelease: