blog/.woodpecker/deploy.yml

28 lines
817 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:39:05 +00:00
image: git.mzhang.io/michael/blog-docker-builder:6gzd1rhcl41y02yw4z9kpjgrhxifqyfs
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:39:05 +00:00
image: git.mzhang.io/michael/blog-docker-builder:6gzd1rhcl41y02yw4z9kpjgrhxifqyfs
2023-02-04 07:04:29 +00:00
commands:
2024-10-21 11:34:52 +00:00
- mc alias set $AWS_DEFAULT_REGION $AWS_ENDPOINT_URL $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY --api S3v4
- mc mirror --overwrite ./dist/ $AWS_DEFAULT_REGION/mzhang-io-website/
2024-10-21 11:14:57 +00:00
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