Merge branch 'feat/add-cicd' into 'staging'

Add automatically deployement

See merge request ezwaytechnology/nextcloud_custom_apps!1
This commit is contained in:
Faniry Arilanto 2024-12-23 09:24:47 +00:00
commit 49c8ce38a1
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" '''
}
}
}
}