Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom branch name to publish artifact
Browse files Browse the repository at this point in the history
cvegagimenez committed Sep 6, 2023
1 parent 363cad3 commit ce0f11c
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions makelib/docs.mk
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ docs.publish: docs.generate
# ====================================================================================
# Common Targets

# only publish docs for master and release branches
ifneq ($(filter master release-%,$(BRANCH_NAME)),)
# only publish docs for main, master and release branches
ifneq ($(filter main master release-%,$(BRANCH_NAME)),)
publish.artifacts: docs.publish
endif
6 changes: 3 additions & 3 deletions makelib/image.mk
Original file line number Diff line number Diff line change
@@ -246,9 +246,9 @@ clean: img.clean img.release.clean

publish.init: img.release.build

# only publish images for main / master and release branches
# TODO(hasheddan): remove master and support overriding
ifneq ($(filter main master release-%,$(BRANCH_NAME)),)
# only publish images for main / master, release branches and custom branches in case of other naming convention
# TODO(hasheddan): remove master
ifneq ($(filter main master release-% $(PUBLISH_BRANCH_NAME),$(BRANCH_NAME)),)
publish.artifacts: $(addprefix img.release.manifest.publish.,$(IMAGES))
endif

6 changes: 3 additions & 3 deletions makelib/imagelight.mk
Original file line number Diff line number Diff line change
@@ -124,9 +124,9 @@ endif
build.done: img.done
clean: img.clean img.release.clean

# only publish images for main / master and release branches
# TODO(hasheddan): remove master and support overriding
ifneq ($(filter main master release-%,$(BRANCH_NAME)),)
# only publish images for main / master, release branches and custom branches in case of other naming convention
# TODO(hasheddan): remove master
ifneq ($(filter main master release-% $(PUBLISH_BRANCH_NAME),$(BRANCH_NAME)),)
publish.artifacts: $(foreach r,$(REGISTRY_ORGS), $(foreach i,$(IMAGES),img.release.publish.$(r).$(i)))
endif

6 changes: 3 additions & 3 deletions makelib/xpkg.mk
Original file line number Diff line number Diff line change
@@ -116,9 +116,9 @@ else
build.artifacts.platform: do.skip.xpkgs
endif

# only publish package for main / master and release branches
# TODO(hasheddan): remove master and support overriding
ifneq ($(filter main master release-% $(CUSTOM_BRANCH_NAME),$(BRANCH_NAME)),)
# only publish images for main / master, release branches and custom branches in case of other naming convention
# TODO(hasheddan): remove master
ifneq ($(filter main master release-% $(PUBLISH_BRANCH_NAME),$(BRANCH_NAME)),)
publish.artifacts: $(foreach r,$(XPKG_REG_ORGS), $(foreach x,$(XPKGS),xpkg.release.publish.$(r).$(x)))
endif

0 comments on commit ce0f11c

Please sign in to comment.