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

Publish branch #240

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions makelib/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions makelib/imagelight.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions makelib/xpkg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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-%,$(BRANCH_NAME)),)
# only publish package 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

Expand Down