Skip to content

Commit

Permalink
chnages to jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
harshakp06 committed Jan 24, 2024
1 parent 44228c8 commit eb8cb23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ pipeline {
// git clone https://github.com/harshakp06/argocd-deploy.git
//cd argocd-deploy
// git pull
// sed -i 's#replace#harshakp06/numeric-app:${GIT_COMMIT}#g' argocd/k8s_deployment_service.yaml

stage('GIT Push') {
steps {
Expand All @@ -92,7 +93,7 @@ pipeline {

sh '''
pwd
sed -i 's#replace#harshakp06/numeric-app:${GIT_COMMIT}#g' argocd/k8s_deployment_service.yaml
sed -i 's#harshakp06/numeric-app:.*#harshakp06/numeric-app:${GIT_COMMIT}#g' argocd/k8s_deployment_service.yaml
git add argocd/k8s_deployment_service.yaml
git commit -m "changes to image version"
git push -u origin main
Expand Down
2 changes: 1 addition & 1 deletion argocd/k8s_deployment_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:

containers:
- image: harshakp06/numeric-app:78d012c6855e304c67bebd233373491b356c3bd4
- image: harshakp06/numeric-app:iausdjhkjc
name: devsecops-container
---
apiVersion: v1
Expand Down

0 comments on commit eb8cb23

Please sign in to comment.