Fix .drone.yml and update README.md
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
424fec7c78
commit
613e740ffd
14
.drone.yml
14
.drone.yml
|
@ -6,17 +6,17 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: klakegg/hugo:latest
|
image: klakegg/hugo:latest
|
||||||
volumes:
|
volumes:
|
||||||
- name: build
|
- name: data
|
||||||
path: $HOME/build
|
path: /data
|
||||||
commands:
|
commands:
|
||||||
- hugo
|
- hugo
|
||||||
- cp -rv public $HOME/build
|
- cp -rv public /data
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: alpine/git:latest
|
image: alpine/git:latest
|
||||||
volumes:
|
volumes:
|
||||||
- name: build
|
- name: data
|
||||||
path: $HOME/build
|
path: /data
|
||||||
environment:
|
environment:
|
||||||
SSH_USER:
|
SSH_USER:
|
||||||
from_secret: ssh_user
|
from_secret: ssh_user
|
||||||
|
@ -30,8 +30,8 @@ steps:
|
||||||
- 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_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:
|
volumes:
|
||||||
- name: build
|
- name: data
|
||||||
temp: {}
|
temp: {}
|
|
@ -5,4 +5,8 @@ This is the source code of my [personal website](https://samsapti.dev).
|
||||||
## License
|
## License
|
||||||
|
|
||||||
- All content is licensed under the [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0) 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)
|
Loading…
Reference in a new issue