forgejo-notifications-core/Makefile

29 lines
1 KiB
Makefile
Raw Permalink Normal View History

env.up:
docker-compose -f ./docker-compose-dev-deps.yml up -d
env.down:
docker-compose -f ./docker-compose-dev-deps.yml down --remove-orphans -v
env.config:
./integration/tests.sh
test:
./integration/tests.sh
pnpm run test
2023-09-19 01:57:09 +05:30
ci-deploy: ## Deploy from CI/CD. Only call from within CI
@if [ "${CI}" != "woodpecker" ]; \
then echo "Only call from within CI. Will re-write your local Git configuration. To override, set export CI=woodpecker"; \
exit 1; \
fi
git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}"
git config --global user.name "${CI_COMMIT_AUTHOR}"
2023-09-19 02:46:49 +05:30
mv coverage docs/ || true
2023-09-19 01:57:09 +05:30
./scripts/ci.sh --init "$$GITEA_WRITE_DEPLOY_KEY"
./scripts/ci.sh --deploy librepages docs/ "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>"
./scripts/ci.sh --push ${LIBREPAGES_DEPLOY_SECRET} librepages
./scripts/ci.sh --clean
help: ## Prints help for targets with comments
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'