Compare commits

...

2 Commits

Author SHA1 Message Date
5f16d9940a [GLOBAL] Changed window title
All checks were successful
continuous-integration/drone Build is passing
2022-05-23 18:35:39 +02:00
77db2734d4 [CI] Added drone config 2022-05-23 18:35:26 +02:00
2 changed files with 79 additions and 1 deletions

78
.drone.yaml Normal file
View File

@ -0,0 +1,78 @@
---
# deployment
kind: 'pipeline'
type: 'docker'
name: 'deployment'
# disable clone
clone:
disable: true
# deployment steps
steps:
# start.simoncor.net deployment
- name: 'rp01 - start.simoncor.net'
image: 'appleboy/drone-ssh:1.6.3'
settings:
# bastion
proxy_host: 'siempie.com'
proxy_port: '22'
proxy_user:
from_secret: 'drone_user'
proxy_key:
from_secret: 'drone_ssh_key'
# rp01.siempie.local
host: 'rp01.siempie.local'
port: '22'
user:
from_secret: 'drone_user'
key:
from_secret: 'drone_ssh_key'
script:
# make sure all is clean
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net reset --hard HEAD'
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net clean -fX'
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net clean -fd'
# fetch latest checkout
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net fetch'
- "sudo /usr/bin/git -C /var/www/start.simoncor.net -c advice.detachedHead=false
checkout '${DRONE_COMMIT_SHA:0:8}'"
# start.simoncor.net deployment
- name: 'rp02 - start.simoncor.net'
image: 'appleboy/drone-ssh:1.6.3'
settings:
# bastion
proxy_host: 'siempie.com'
proxy_port: '22'
proxy_user:
from_secret: 'drone_user'
proxy_key:
from_secret: 'drone_ssh_key'
# rp02.siempie.local
host: 'rp02.siempie.local'
port: '22'
user:
from_secret: 'drone_user'
key:
from_secret: 'drone_ssh_key'
script:
# make sure all is clean
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net reset --hard HEAD'
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net clean -fX'
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net clean -fd'
# fetch latest checkout
- 'sudo /usr/bin/git -C /var/www/start.simoncor.net fetch'
- "sudo /usr/bin/git -C /var/www/start.simoncor.net -c advice.detachedHead=false
checkout '${DRONE_COMMIT_SHA:0:8}'"

View File

@ -1,6 +1,6 @@
baseURL = "https://start.simoncor.net/" baseURL = "https://start.simoncor.net/"
languageCode = "en-us" languageCode = "en-us"
title = "Application Dashboard" title = "/speed/dial"
theme = "slate" theme = "slate"