blog.polynom.me/.woodpecker.yml

24 lines
900 B
YAML
Raw Normal View History

2024-01-05 17:10:44 +00:00
steps:
build:
image: alpine:3.19
commands:
- apk add --no-cache zola npm
- npm install -D tailwindcss @tailwindcss/typography
- npx tailwindcss -i input.css -o static/css/index.css --minify
- zola build
2024-01-05 17:20:42 +00:00
- ls -l
2024-01-05 17:17:02 +00:00
deploy:
2024-01-05 17:54:22 +00:00
image: alpine:3.19
2024-01-05 18:19:42 +00:00
secrets: [ git_push_token ]
2024-01-05 17:54:22 +00:00
commands:
2024-01-05 18:19:42 +00:00
- apk add --no-cache git
2024-01-05 17:54:22 +00:00
- git config --global user.email "ci@polynom.me"
- git config --global user.name "polynom.me CI system"
- git config --global --add safe.directory $CI_WORKSPACE/$CI_REPO_OWNER/$CI_REPO_NAME/deploy
2024-01-05 18:19:42 +00:00
- git clone -b pages $CI_REPO_CLONE_URL deploy
2024-01-05 17:54:22 +00:00
- cd deploy
2024-01-05 18:22:11 +00:00
- git remote set-url origin https://$GIT_PUSH_TOKEN@git.polynom.me/$CI_REPO_OWNER/$CI_REPO_NAME.git
2024-01-05 17:54:22 +00:00
- cp -rf ../public/* .
- git add --all
- git commit -m "Deploy new version $CI_COMMIT_SHA"
- git push -u origin pages