diff options
Diffstat (limited to '.drone.yml')
| -rw-r--r-- | .drone.yml | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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: |
