blog.polynom.me/.woodpecker.yml
Alexander "PapaTutuWawa 28cf4f8653
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
:)?
2024-01-05 18:57:52 +01:00

25 lines
861 B
YAML

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
- ls -l
deploy:
image: alpine:3.19
commands:
- apk add --no-cache git openssh
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo $SSH_KEY > ~/.ssh/id_rsa
- 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
- git clone -b pages $CI_REPO_CLONE_SSH_URL deploy
- cd deploy
- cp -rf ../public/* .
- git add --all
- git commit -m "Deploy new version $CI_COMMIT_SHA"
- git push -u origin pages