Skip to content

Commit

Permalink
Merge pull request #90 from Syriiin/more-release-guardrails
Browse files Browse the repository at this point in the history
Add release guardrail against uncommitted changes
  • Loading branch information
Syriiin authored Oct 29, 2024
2 parents 00507dd + a221ed2 commit 85f6a3b
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 @@ -53,6 +53,9 @@ ifndef GITHUB_USERNAME
endif
ifneq "$(shell git branch --show-current)" "master"
$(error This command can only be run on the master branch)
endif
ifneq "$(shell git diff --name-only master)" ""
$(error There are uncommitted changes in the working directory)
endif
echo $$GITHUB_PAT | docker login ghcr.io --username $$GITHUB_USERNAME --password-stdin
VERSION=$(VERSION) $(COMPOSE_PUBLISH) build
Expand Down

0 comments on commit 85f6a3b

Please sign in to comment.