update for awscli woodpecker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f1b8136785
commit
ee867ae783
1 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: git.mzhang.io/michael/blog-docker-builder:x0m1c7r2qzc3qbyw8sfv5flfv75xiqdz
|
image: git.mzhang.io/michael/blog-docker-builder:l3kh5sx46zqszsbr1ghvvdyp0zl8gl9m
|
||||||
environment:
|
environment:
|
||||||
- ASTRO_TELEMETRY_DISABLED=1
|
- ASTRO_TELEMETRY_DISABLED=1
|
||||||
commands:
|
commands:
|
||||||
|
@ -13,14 +13,14 @@ steps:
|
||||||
- event: push
|
- event: push
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: git.mzhang.io/michael/blog-docker-builder:x0m1c7r2qzc3qbyw8sfv5flfv75xiqdz
|
image: git.mzhang.io/michael/blog-docker-builder:l3kh5sx46zqszsbr1ghvvdyp0zl8gl9m
|
||||||
commands:
|
commands:
|
||||||
- echo "$${SSH_SECRET_KEY}" > SSH_SECRET_KEY
|
- aws s3 sync ./dist/ s3://mzhang-io-website/
|
||||||
- chmod 600 SSH_SECRET_KEY
|
secrets:
|
||||||
- mkdir -p ~/.ssh
|
- AWS_ACCESS_KEY_ID
|
||||||
- echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO+RKFYjD8UjqhfOHFHNyijkbGzC4fJEIIhrBwHj+FsQ" >> known_hosts
|
- AWS_DEFAULT_REGION
|
||||||
- rsync -azrP -e "ssh -i SSH_SECRET_KEY -o UserKnownHostsFile=known_hosts" dist/ blogDeploy@mzhang.io:/home/blogDeploy/public
|
- AWS_ENDPOINT_URL
|
||||||
secrets: [SSH_SECRET_KEY]
|
- AWS_SECRET_ACCESS_KEY
|
||||||
when:
|
when:
|
||||||
- branch: master
|
- branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
Loading…
Reference in a new issue