From 613e740ffd19267cedb8bbfb52020df74767acf1 Mon Sep 17 00:00:00 2001 From: samsapti Date: Tue, 24 May 2022 00:24:50 +0200 Subject: [PATCH] Fix .drone.yml and update README.md --- .drone.yml | 14 +++++++------- README.md | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index fce0be6..c0fe52b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: {} \ No newline at end of file diff --git a/README.md b/README.md index c180c8e..ba9deaf 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +- 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) \ No newline at end of file