diff options
| author | qugalet <qugalet@m0e.space> | 2023-10-31 23:38:44 +0200 |
|---|---|---|
| committer | qugalet <qugalet@m0e.space> | 2023-10-31 23:38:44 +0200 |
| commit | 7a7eef2f8c24643d936a3c41393b7acfa56848df (patch) | |
| tree | b3dc67aa7940ecfa9542e8c759af52b04771598a | |
| parent | 86661fe5c42db11dae9aa4075a969ba96ad9b108 (diff) | |
| download | quga.m0e.space-7a7eef2f8c24643d936a3c41393b7acfa56848df.tar.gz quga.m0e.space-7a7eef2f8c24643d936a3c41393b7acfa56848df.zip | |
divide by two steps and fix not found error
| -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: |
