website/.woodpecker.yml
Sakooooo 1dff0a3b56
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
bro
2024-12-07 14:35:57 +04:00

28 lines
715 B
YAML

when:
- event: push
branch: master
steps:
build:
image: node
commands:
- echo "Installing pnpm..."
- npm install -g pnpm
- echo "Installing dependencies..."
- pnpm i --frozen-lockfile
- echo "Building..."
- pnpm run build
deploy:
image: node
environment:
CLOUDFLARE_ACCOUNT_ID:
from_secret: cloudflare_account_id
CLOUDFLARE_API_TOKEN:
from_secret: cloudflare_api_token
commands:
- echo "Cleaning old files..."
- find /tmp/output -name '.*' ! -name '.' ! -name ".." -exec rm -r '{}' \;
- echo "Moving new files..."
- cp -r dist/. /tmp/output
volumes:
- /home/docker/sakosite:/tmp/output