Skip to content

Commit

Permalink
Ensure releases can only occur on master
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed May 18, 2024
1 parent a3f13f3 commit a8890dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ ifndef GITHUB_PAT
endif
ifndef GITHUB_USERNAME
$(error GITHUB_USERNAME env var is not set)
endif
ifneq "$(shell git branch --show-current)" "master"
$(error This command can only be run on the master branch)
endif
echo $$GITHUB_PAT | docker login ghcr.io --username $$GITHUB_USERNAME --password-stdin
VERSION=$(VERSION) $(COMPOSE_PUBLISH) build
Expand Down

0 comments on commit a8890dc

Please sign in to comment.