Skip to content

Commit

Permalink
Update JenkinsFile
Browse files Browse the repository at this point in the history
changed the sed command to replace image tag
  • Loading branch information
naveen-hub79 committed Nov 16, 2023
1 parent 2fd7f17 commit 19abc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JenkinsFile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pipeline {
git config user.name "Naveen Chevulamaddi"
BUILD_NUMBER=${BUILD_NUMBER}
cp manifest-template/deploy-template.yaml manifests/maven-app-deploy.yaml
sed -i "s/replaceImageTag/${BUILD_NUMBER}/g" manifests/maven-app-deploy.yaml
sed -i "s|{{BUILD_NUMBER}}|${BUILD_NUMBER}|g" manifests/maven-app-deploy.yaml
git add manifests/maven-app-deploy.yaml
git commit -m "Update deployment image to version ${BUILD_NUMBER}"
git push https://${GITHUB_TOKEN}@github.com/${GIT_USER_NAME}/${GIT_REPO_NAME} HEAD:master
Expand Down

0 comments on commit 19abc5d

Please sign in to comment.