Skip to content

Commit a8890dc

Browse files
committed
Ensure releases can only occur on master
1 parent a3f13f3 commit a8890dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ ifndef GITHUB_PAT
4747
endif
4848
ifndef GITHUB_USERNAME
4949
$(error GITHUB_USERNAME env var is not set)
50+
endif
51+
ifneq "$(shell git branch --show-current)" "master"
52+
$(error This command can only be run on the master branch)
5053
endif
5154
echo $$GITHUB_PAT | docker login ghcr.io --username $$GITHUB_USERNAME --password-stdin
5255
VERSION=$(VERSION) $(COMPOSE_PUBLISH) build

0 commit comments

Comments
 (0)