summaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/.drone.yml b/.drone.yml
index a6cb7dd..9323d17 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -7,8 +7,8 @@ clone:
disable: true
steps:
- - name: pull changes and build
- image: klakegg/hugo:alpine
+ - name: pull changes
+ image: alpine/git
volumes:
- name: public
path: /public
@@ -20,12 +20,20 @@ steps:
commands:
- mkdir -p $HOME/.ssh
- echo "$SSH_KEY" > $HOME/.ssh/id_ed25519
+ - touch $HOME/.ssh/known_hosts
- chmod 600 $HOME/.ssh/known_hosts
- ssh-keyscan -H git@m0e.space > ~/.ssh/known_hosts 2> /dev/null
- cd /public
- - apk add git openssh
- git pull origin master
- git submodule update
+
+ - name: build
+ image: klakegg/hugo
+ volumes:
+ - name: public
+ path: /public
+ commands:
+ - cd /public
- hugo
volumes: