Merge branch 'feat/add_cicd_dvthanato' into 'production-dv-thanato'

add semi cicd on dv-thanato production

See merge request sottye/hytha35!9
This commit is contained in:
Faniry Arilanto 2025-08-07 15:41:36 +00:00
commit 2faa2bfd87

9
Jenkinsfile vendored
View File

@ -9,5 +9,14 @@ pipeline {
sudo su jenkins -c "git stash && git pull origin staging" '''
}
}
stage ("deploy to prod dv-thanato") {
when { branch 'production-dv-thanato' }
agent { label 'apache && dev'}
steps {
input 'Do you approve deployment?'
sh ''' ssh -i ${SOTTYE_DVTHANATO_SSHKEY} ${SOTTYE_DVTHANATO_SSHUSER}@${SOTTYE_DVTHANATO_IPSERVER} "cd ${SOTTYE_DVTHANATO_PATH} && git pull origin production-dv-thanato" '''
}
}
}
}