Updated paths and branch in deploy repo

This commit is contained in:
Marcin-Ramotowski
2025-07-10 21:43:48 +02:00
parent d8617d01eb
commit c37d92a4cf

View File

@ -59,11 +59,11 @@ pipeline {
git config --global user.email "jenkins@marcin00.pl"
'''
sshagent(['gitea-deploy-key']) {
sh 'git clone ${DEPLOY_REPO} --branch jenkins-kubernetes'
sh 'git clone ${DEPLOY_REPO} --branch fluxcd'
}
}
dir('user-microservice-deploy') {
dir('user-microservice-deploy/apps/user-microservice') {
sh '''
# Podmień tag obrazu w pliku deploy.yaml
awk -v commit="$GIT_COMMIT" '
@ -82,7 +82,7 @@ pipeline {
sh '''
git add deploy.yaml
git diff-index --quiet HEAD || git commit -m "JENKINS: Changed deployed version to $GIT_COMMIT"
git push origin jenkins-kubernetes
git push origin fluxcd
'''
}
}