Skip to content

Commit

Permalink
do not add version if main
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Sep 13, 2022
1 parent d201724 commit d2b9c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d2b9c04

Please sign in to comment.