summaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorhyang <hyang@hyang.xyz>2023-08-27 14:43:26 -0700
committerhyang <hyang@hyang.xyz>2023-08-27 14:43:26 -0700
commitc8a9050573706f7568574815fdc83fc2c0052dcb (patch)
treed2c2b65b144e18ff4f4ddea49e0769e2aa8f9d93 /.drone.yml
parentc4626415242d2ef6563fb8c4ddc82a3500d95d46 (diff)
Update drone.yml
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml27
1 files changed, 7 insertions, 20 deletions
diff --git a/.drone.yml b/.drone.yml
index 69927af..974b1fd 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -10,25 +10,12 @@ steps:
HUGO_ENV: production
- name: push
- image: debian:bookworm-slim
+ image: appleboy/drone-git-push
environment:
- GIT_PUB:
- from_secret: GIT_SSH_PUBLIC
- GIT_SEC:
+ PLUGIN_SSH_KEY:
from_secret: GIT_SSH_PRIVATE
- commands:
- - apt-get update
- - apt-get install git -y
- - mkdir ~/.ssh
- - echo "$GIT_PUB"
- - echo "$GIT_SEC"
- - echo "$GIT_PUB" > ~/.ssh/id_ed25519.pub
- - echo "$GIT_SEC" > ~/.ssh/id_ed25519
- - ssh-keyscan -t ed25519 git.hyang.xyz >> ~/.ssh/known_hosts
- - cd public
- - git init
- - git add .
- - git commit -m 'comit'
- - git remote add origin 'git@hyang.xyz:hyang/pages.git'
- - git push -f origin master
-
+ settings:
+ pull: true
+ remote: ssh://git@hyang.xyz:hyang/hyang.xyz.git
+ branch: master
+ commit_message: "[ci] Deploy page"