From d1fa0513356b7df5b5b7d77a2b34f75c329413f5 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sun, 12 Jun 2022 15:28:01 +0200 Subject: [PATCH] New structure --- .drone.yml | 25 +++++++++++++++++++++++++ diaries/.gitkeep | 0 list.json | 1 + projects/.gitkeep | 0 homepage.adoc => projects/homepage.adoc | 0 5 files changed, 26 insertions(+) create mode 100644 diaries/.gitkeep create mode 100644 projects/.gitkeep rename homepage.adoc => projects/homepage.adoc (100%) diff --git a/.drone.yml b/.drone.yml index 3aed89d..32bf6f2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,7 @@ trigger: - push branch: - senpai + - dev steps: - name: test-build image: asciidoctor/docker-asciidoctor @@ -30,6 +31,30 @@ server: ssh_key: from_secret: ssh_key steps: +- name: pull + commands: + - cd /srv/website/projects + - git pull +--- +# Push on dev environment +kind: pipeline +type: ssh +name: deploy +depends_on: +- test +trigger: + branch: + - dev + event: + - push +server: + host: + from_secret: ssh_host + user: + from_secret: ssh_user + ssh_key: + from_secret: ssh_key +steps: - name: pull commands: - cd /srv/website/projects diff --git a/diaries/.gitkeep b/diaries/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/list.json b/list.json index a929898..f3a74e5 100644 --- a/list.json +++ b/list.json @@ -1,5 +1,6 @@ [ { + "type": "project", "name": "homepage", "short": "This website.", "desc": [ diff --git a/projects/.gitkeep b/projects/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/homepage.adoc b/projects/homepage.adoc similarity index 100% rename from homepage.adoc rename to projects/homepage.adoc