forked from Hostea/website
chore & fix: mv deployment instructions to makefile
parent
6b08070920
commit
2a72f976c2
|
@ -4,11 +4,6 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ push, pull_request, tag, deployment ]
|
event: [ push, pull_request, tag, deployment ]
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "$CI_COMMIT_AUTHOR_EMAIL"
|
|
||||||
- git config --global user.name "$CI_COMMIT_AUTHOR"
|
|
||||||
- make env
|
- make env
|
||||||
- make
|
- make
|
||||||
- ./scripts/zola.sh deploy pages public "$CI_COMMIT_AUTHOR <$CI_COMMIT_AUTHOR_EMAIL>"
|
- make ci-deploy
|
||||||
- ./scripts/ci.sh --init $HOSTEA_WRITE_DEPLOY_KEY
|
|
||||||
- ./scripts/ci.sh --deploy $PAGES_DEPLOY_SECRET pages
|
|
||||||
- ./scripts/ci.sh --clean
|
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -5,6 +5,14 @@ default: ## Build the website
|
||||||
clean: ## Clean build assets
|
clean: ## Clean build assets
|
||||||
./scripts/zola.sh clean
|
./scripts/zola.sh clean
|
||||||
|
|
||||||
|
ci-deploy: ## Deploy from CI/CD. Only call from within CI
|
||||||
|
git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}"
|
||||||
|
git config --global user.name "${CI_COMMIT_AUTHOR}"
|
||||||
|
./scripts/zola.sh deploy pages public "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>"
|
||||||
|
./scripts/ci.sh --init ${HOSTEA_WRITE_DEPLOY_KEY}
|
||||||
|
./scripts/ci.sh --deploy ${PAGES_DEPLOY_SECRET} pages
|
||||||
|
./scripts/ci.sh --clean
|
||||||
|
|
||||||
env: ## Download build dependencies and setup dev environement
|
env: ## Download build dependencies and setup dev environement
|
||||||
./scripts/zola.sh install
|
./scripts/zola.sh install
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue