Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage ('Push to Repo') {
- steps {
- dir('ArgoCD') {
- withCredentials([gitUsernamePassword(credentialsId: 'git', gitToolName: 'Default')]) {
- git branch: 'main', url: 'https://github.com/Panda-Academy-Core-2-0/ArgoCD.git'
- sh """ cd frontend
- sed -i "s#$imageName.*#$imageName:$dockerTag#g" deployment.yaml
- git commit -am "Set new $dockerTag tag."
- git push origin main
- """
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement