blog/.woodpecker.yml

27 lines
680 B
YAML
Raw Normal View History

2024-05-02 20:48:55 +00:00
steps:
2023-02-04 07:04:29 +00:00
build:
2024-10-21 11:14:57 +00:00
image: git.mzhang.io/michael/blog-docker-builder:l3kh5sx46zqszsbr1ghvvdyp0zl8gl9m
2024-06-27 00:17:01 +00:00
environment:
- ASTRO_TELEMETRY_DISABLED=1
2023-02-04 07:04:29 +00:00
commands:
2024-06-27 00:17:01 +00:00
- mkdir /tmp
2024-06-27 00:47:02 +00:00
- rm -rf node_modules
2024-06-27 00:42:02 +00:00
- npm i -g pnpm@9.4.0
- npx pnpm install --frozen-lockfile
- npx pnpm run build
2024-06-21 06:00:23 +00:00
when:
- event: push
2023-02-04 07:04:29 +00:00
deploy:
2024-10-21 11:14:57 +00:00
image: git.mzhang.io/michael/blog-docker-builder:l3kh5sx46zqszsbr1ghvvdyp0zl8gl9m
2023-02-04 07:04:29 +00:00
commands:
2024-10-21 11:14:57 +00:00
- aws s3 sync ./dist/ s3://mzhang-io-website/
secrets:
- AWS_ACCESS_KEY_ID
- AWS_DEFAULT_REGION
- AWS_ENDPOINT_URL
- AWS_SECRET_ACCESS_KEY
2023-02-04 07:04:29 +00:00
when:
2024-06-21 06:00:23 +00:00
- branch: master
event: push