chore & fix: mv deployment instructions to makefile
ci/woodpecker/push/woodpecker Pipeline failed Details

pull/6/head
Aravinth Manivannan 2022-04-16 11:01:47 +05:30
parent 6b08070920
commit 2a72f976c2
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 9 additions and 6 deletions

View File

@ -4,11 +4,6 @@ pipeline:
when:
event: [ push, pull_request, tag, deployment ]
commands:
- git config --global user.email "$CI_COMMIT_AUTHOR_EMAIL"
- git config --global user.name "$CI_COMMIT_AUTHOR"
- make env
- make
- ./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
- make ci-deploy

View File

@ -5,6 +5,14 @@ default: ## Build the website
clean: ## Clean build assets
./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
./scripts/zola.sh install