website/.woodpecker.yml
Sakooooo d50a728ac5
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
posix shell issue
2024-12-07 13:32:13 +04:00

29 lines
691 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..."
- rm -r /tmp/output/*
- rm -r /tmp/output/.*
- echo "Moving new files..."
- cp -r dist/. /tmp/output
volumes:
- /home/docker/sakosite:/tmp/output