Skip to content

Commit

Permalink
Merge pull request #21 from Syriiin/ensure-release-on-master
Browse files Browse the repository at this point in the history
Ensure releases can only occur on master
  • Loading branch information
Syriiin authored May 18, 2024
2 parents a3f13f3 + a8890dc commit ba655a1
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 ba655a1

Please sign in to comment.