diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..4d8bce8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +--- + +kind: pipeline +type: docker +name: default + +clone: + disable: yes + +steps: + - name: deploy staging + image: ghcr.io/appleboy/drone-ssh + environment: + INSTANCE: staging + settings: &settings + host: + from_secret: ssh_host + username: + from_secret: ssh_username + key: + from_secret: ssh_key + script: + - sudo deploy-shiftregister.sh "$$INSTANCE" + when: + branch: + - main + + - name: deploy production + image: ghcr.io/appleboy/drone-ssh + environment: + INSTANCE: production + settings: *settings + when: + branch: + - live + +trigger: + event: + - push