summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqugalet <qugalet@m0e.space>2023-10-31 23:38:44 +0200
committerqugalet <qugalet@m0e.space>2023-10-31 23:38:44 +0200
commit7a7eef2f8c24643d936a3c41393b7acfa56848df (patch)
treeb3dc67aa7940ecfa9542e8c759af52b04771598a
parent86661fe5c42db11dae9aa4075a969ba96ad9b108 (diff)
downloadquga.m0e.space-7a7eef2f8c24643d936a3c41393b7acfa56848df.tar.gz
quga.m0e.space-7a7eef2f8c24643d936a3c41393b7acfa56848df.zip
divide by two steps and fix not found error
-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: