Skip to content

Commit

Permalink
Add release guardrail against uncommitted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Oct 29, 2024
1 parent 00507dd commit a221ed2
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 a221ed2

Please sign in to comment.