Fix .drone.yml and update README.md
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sam A. 2022-05-24 00:24:50 +02:00
parent 424fec7c78
commit 613e740ffd
2 changed files with 12 additions and 8 deletions

View file

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

View file

@ -5,4 +5,8 @@ This is the source code of my [personal website](https://samsapti.dev).
## License
- All content is licensed under the [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0) License.
- All code is licensed under the [AGPLv3](https://www.gnu.org/licenses/agpl-3.0.html) License.
- All code is licensed under the [AGPLv3](https://www.gnu.org/licenses/agpl-3.0.html) License.
## Builds
[![Build Status](https://drone.data.coop/api/badges/samsapti/samsapti.dev/status.svg)](https://drone.data.coop/samsapti/samsapti.dev)