Add automatically deployement

This commit is contained in:
FaniryArilanto 2024-12-23 12:11:05 +03:00
parent d1de6d901e
commit b24f2e94a8
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
!calendar/
!gestion/
!Jenkinsfile
!calendar/**
!gestion/**

13
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,13 @@
pipeline {
agent any
stages {
stage ("deploy to dev ezway") {
when { branch 'staging' }
agent { label 'apache && dev' }
steps {
sh '''cd /var/www/nextcloud/nextcloud/custom_apps
sudo su jenkins -c "git pull origin staging" '''
}
}
}
}