diff --git a/.drone.yml b/.drone.yml index 3cd3fab..df7dea3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,10 @@ -pipeline: - build-draft: +--- +kind: pipeline +name: default + + +steps: + - name: build-draft image: plugins/hugo hugoVersion: 0.52 validate: true @@ -11,7 +16,7 @@ pipeline: branch: draft event: push - build: + - name: build image: plugins/hugo hugoVersion: 0.52 validate: true @@ -21,11 +26,17 @@ pipeline: branch: master event: push - publish: + - name: publish image: appleboy/drone-scp source: public/* target: /var/www/virtual/geeklab/html/geeklabor.de/ - secrets: [ ssh_host, ssh_username, ssh_key ] + environment: + SSH_HOST: + from_secret: ssh_host + SSH_USERNAME: + from_secret: ssh_username + SSH_KEY: + from_secret: ssh_key strip_components: 1 rm: true when: