Commit ad1484e4 authored by abdullh.alsoleman's avatar abdullh.alsoleman

updated tag

parent 723809a7
......@@ -32,5 +32,29 @@ pipeline {
}
}
}
stage('Update Manifest File') {
steps {
script {
def manifestRepoUrl = 'https://github.com/alisaeed24/argocd.git'
def credentialsId = 'github'
withCredentials([string(credentialsId: credentialsId, variable: 'GITHUB_TOKEN')]) {
sh "git clone ${manifestRepoUrl} manifest-repo"
dir('manifest-repo/deployment') {
sh """
sed -i 's|image: .*|image: ${IMAGE_NAME}|' Job-Deployment.yml
"""
sh """
git config user.email "alisaeed23369@gmail.com"
git config user.name "alisaeed24"
git add Job-Deployment.yml
git commit -m "Update jobservice image to ${IMAGE_NAME}"
git push https://${GITHUB_TOKEN}@github.com/alisaeed24/argocd.git master
"""
}
}
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment