Fix typo
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Sam A. 2022-05-24 00:23:20 +02:00
parent 18526ffd66
commit 424fec7c78

View file

@ -7,16 +7,16 @@ steps:
image: klakegg/hugo:latest image: klakegg/hugo:latest
volumes: volumes:
- name: build - name: build
path: /root/build path: $HOME/build
commands: commands:
- hugo - hugo
- cp -rv public /root/build - cp -rv public $HOME/build
- name: deploy - name: deploy
image: alpine/git:latest image: alpine/git:latest
volumes: volumes:
- name: build - name: build
path: /root/build path: $HOME/build
environment: environment:
SSH_USER: SSH_USER:
from_secret: ssh_user from_secret: ssh_user
@ -29,8 +29,8 @@ steps:
commands: commands:
- mkdir $HOME/.ssh - mkdir $HOME/.ssh
- echo "$SSH_KEY" > $HOME/.ssh/id_ed25519 - echo "$SSH_KEY" > $HOME/.ssh/id_ed25519
- chmod 600 $HOME/.ssh/id_25519 - chmod 600 $HOME/.ssh/id_ed25519
- scp -o "StrictHostKeyChecking no" -P ${SSH_PORT} -r /root/build/public ${SSH_USER}@${SSH_HOST}:docker/nginx/website - scp -o "StrictHostKeyChecking no" -P ${SSH_PORT} -r $HOME/build/public ${SSH_USER}@${SSH_HOST}:docker/nginx/website
volumes: volumes:
- name: build - name: build