Skip to content

Commit

Permalink
Merge pull request #21 from Syriiin/add-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 9045295 + ed3c6e2 commit ab4020d
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 @@ -55,6 +55,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 ab4020d

Please sign in to comment.