2
0
Fork 0

ci: add drone configuration
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Luca 2024-04-12 23:46:49 +02:00
parent 0d2415aef2
commit 079e6a9f06
1 changed files with 39 additions and 0 deletions

39
.drone.yml Normal file
View File

@ -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