Remove unneeded Drone CI volume
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c24b6d6dd1
commit
d49373f555
14
.drone.yml
14
.drone.yml
|
@ -5,20 +5,14 @@ name: build-and-deploy
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: klakegg/hugo:alpine
|
image: klakegg/hugo:alpine
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
path: /data
|
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache git
|
- apk add --no-cache git
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- hugo -d /data/public
|
- hugo
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: alpine/git:latest
|
image: alpine/git:latest
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
path: /data
|
|
||||||
environment:
|
environment:
|
||||||
SSH_USER:
|
SSH_USER:
|
||||||
from_secret: ssh_user
|
from_secret: ssh_user
|
||||||
|
@ -32,14 +26,10 @@ steps:
|
||||||
- mkdir ~/.ssh
|
- mkdir ~/.ssh
|
||||||
- echo "$${SSH_KEY}" > ~/.ssh/id_ed25519
|
- echo "$${SSH_KEY}" > ~/.ssh/id_ed25519
|
||||||
- chmod 600 ~/.ssh/id_ed25519
|
- chmod 600 ~/.ssh/id_ed25519
|
||||||
- scp -o "StrictHostKeyChecking no" -P $${SSH_PORT} -r /data/public $${SSH_USER}@$${SSH_HOST}:docker/nginx/website
|
- scp -o "StrictHostKeyChecking no" -P $${SSH_PORT} -r ./public $${SSH_USER}@$${SSH_HOST}:docker/nginx/website
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
temp: {}
|
|
Loading…
Reference in a new issue