diff --git a/.drone.yml b/.drone.yml index e77632f..889a880 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,26 +1,28 @@ +--- kind: pipeline -name: default +type: ssh +name: production + +trigger: + branch: + - main + +server: + host: 192.168.10.119 + user: root + ssh_key: + from_secret: ssh_key steps: -- name: ssh - image: appleboy/drone-ssh - settings: - host: homelab-blog.lan - username: root - key_path: /root/.ssh/id_rsa - port: 22 - command_timeout: 2m - script: - - apt install hugo -y - - git submodule update --init - - hugo version - # - ln -s /home/hebron/hugo_resources/production resources - - hugo --gc --minify -b https://blog.broillet.ch/ +- name: initialize + commands: + - git submodule update --init + - hugo version + # - ln -s /home/hebron/hugo_resources/production resources -volumes: -- name: ssh_key - host: - path: /root/.ssh/id_rsa +- name: build + commands: + - hugo --gc --minify -b https://blog.broillet.ch/ # - name: vps-deploy # commands: