-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Refactor Makefile targets and dependencies
- Update Makefile to include new dependencies for `publish` target - Add conditional checks for CI in `version` target - Refactor `release` target to handle version dependency and CI condition
- Loading branch information
1 parent
3553040
commit ec6b23d
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,14 +64,22 @@ run: | |
build: | ||
docker compose build backstage | ||
|
||
publish: login-github | ||
publish: login-github version | ||
docker compose build --push backstage | ||
VERSION=latest docker compose build --push backstage | ||
|
||
version: | ||
@echo "$(VERSION)" | ||
ifdef CI | ||
@echo "# 📦 Version" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "Copy the following version to the \`VERSION\` variable as the Docker image tag." >> ${GITHUB_STEP_SUMMARY} | ||
@echo "\`\`\`" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "${VERSION}" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "\`\`\`" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "" >> ${GITHUB_STEP_SUMMARY} | ||
endif | ||
|
||
release: | ||
release: version | ||
ifdef CI | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
|
@@ -82,14 +90,6 @@ endif | |
--title "${VERSION}" \ | ||
--generate-notes \ | ||
--target main | ||
ifdef CI | ||
@echo "# Version" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "Copy the following version to the \`VERSION\` variable as the Docker image tag." >> ${GITHUB_STEP_SUMMARY} | ||
@echo "\`\`\`" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "${VERSION}" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "\`\`\`" >> ${GITHUB_STEP_SUMMARY} | ||
@echo "" >> ${GITHUB_STEP_SUMMARY} | ||
endif | ||
|
||
undo-release: | ||
git tag -d ${VERSION} | ||
|