@@ -50,19 +50,21 @@ steps:
50
50
env :
51
51
ghcr_versioned_tag : # @ tagging.with_registry(sections.cache_registry.url,sections.service.image_name,"${{ steps.version.outputs.app_version }}")
52
52
ghcr_latest_tag : # @ tagging.with_registry(sections.cache_registry.url,sections.service.image_name,"latest")
53
+ ghcr_master_tag : # @ tagging.with_registry(sections.cache_registry.url,sections.service.image_name,"master")
53
54
# @ if hasattr(sections,"main_registry"):
54
55
ali_cloud_versioned_tag : # @ tagging.with_registry(sections.main_registry.url,sections.service.image_name,"${{ steps.version.outputs.app_version }}")
55
56
ali_cloud_latest_tag : # @ tagging.with_registry(sections.main_registry.url,sections.service.image_name,"latest")
57
+ ali_cloud_master_tag : # @ tagging.with_registry(sections.main_registry.url,sections.service.image_name,"master")
56
58
# @ end
57
59
run : |
58
60
59
61
ali_cloud_tags=${ali_cloud_versioned_tag}
60
62
ghcr_tags=${ghcr_versioned_tag}
61
-
63
+
62
64
branch=$(git branch --show-current)
63
65
if [[ "$branch" = 'main' || "$branch" = 'master' ]]; then
64
- ali_cloud_tags="${ali_cloud_tags},${branch }"
65
- ghcr_tags="${ghcr_tags},${branch }"
66
+ ali_cloud_tags="${ali_cloud_tags},${ali_cloud_master_tag }"
67
+ ghcr_tags="${ghcr_tags},${ghcr_master_tag }"
66
68
fi
67
69
68
70
if [[ ${GITHUB_REF} == refs/tags/v* ]]; then
0 commit comments