Updated paths and branch in deploy repo
This commit is contained in:
6
.jenkins/Jenkinsfile
vendored
6
.jenkins/Jenkinsfile
vendored
@ -59,11 +59,11 @@ pipeline {
|
|||||||
git config --global user.email "jenkins@marcin00.pl"
|
git config --global user.email "jenkins@marcin00.pl"
|
||||||
'''
|
'''
|
||||||
sshagent(['gitea-deploy-key']) {
|
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 '''
|
sh '''
|
||||||
# Podmień tag obrazu w pliku deploy.yaml
|
# Podmień tag obrazu w pliku deploy.yaml
|
||||||
awk -v commit="$GIT_COMMIT" '
|
awk -v commit="$GIT_COMMIT" '
|
||||||
@ -82,7 +82,7 @@ pipeline {
|
|||||||
sh '''
|
sh '''
|
||||||
git add deploy.yaml
|
git add deploy.yaml
|
||||||
git diff-index --quiet HEAD || git commit -m "JENKINS: Changed deployed version to $GIT_COMMIT"
|
git diff-index --quiet HEAD || git commit -m "JENKINS: Changed deployed version to $GIT_COMMIT"
|
||||||
git push origin jenkins-kubernetes
|
git push origin fluxcd
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user