We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3f13f3 commit a8890dcCopy full SHA for a8890dc
Makefile
@@ -47,6 +47,9 @@ ifndef GITHUB_PAT
47
endif
48
ifndef GITHUB_USERNAME
49
$(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)
53
54
echo $$GITHUB_PAT | docker login ghcr.io --username $$GITHUB_USERNAME --password-stdin
55
VERSION=$(VERSION) $(COMPOSE_PUBLISH) build
0 commit comments