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