File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,12 @@ jobs:
108
108
- *load_version
109
109
- *install_deps
110
110
- run : git config --global user.email "sonario@rookout.com" && git config --global user.name "sonariorobot"
111
- - run : git clone -b staging git@github.com:Rookout/gitops-demo.git
112
- - run : PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq -i -v '.tutorialNodejs.image.tag = strenv(PUBLISH_VERSION) | .sandboxNodejs.image.tag = strenv(PUBLISH_VERSION)' gitops-demo/argocd/apps/values.yaml
113
- - run : cd gitops-demo && git add argocd/apps/values.yaml
114
- - run : cd gitops-demo && git commit -m "update tutorial-nodejs $NEW_VERSION"
115
- - run : cd gitops-demo && git push https://sonariorobot:$GITHUB_TOKEN@github.com/Rookout/gitops-demo.git staging
116
- - run : cd gitops-demo && git checkout production && git pull
117
- - run : PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq -i -v '.tutorialNodejs.image.tag = strenv(PUBLISH_VERSION) | .sandboxNodejs.image.tag = strenv(PUBLISH_VERSION)' gitops-demo/argocd/apps/values.yaml
118
- - run : cd gitops-demo && git add argocd/apps/values.yaml
119
- - run : cd gitops-demo && git commit -m "update tutorial-nodejs $NEW_VERSION"
120
- - run : cd gitops-demo && git push https://sonariorobot:$GITHUB_TOKEN@github.com/Rookout/gitops-demo.git production
111
+ - run : git clone git@github.com:Rookout/gitops.git
112
+ - run : PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq eval -i -v '.apps[] |= select(.chart.name == "tutorial-nodejs").helmValues.image.tag = strenv(PUBLISH_VERSION)' apps/demo/staging/apps.yaml
113
+ - run : PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq eval -i -v '.apps[] |= select(.chart.name == "tutorial-nodejs").helmValues.image.tag = strenv(PUBLISH_VERSION)' apps/demo/production/apps.yaml
114
+ - run : cd gitops && git add apps/demo/staging/apps.yaml apps/demo/production/apps.yaml
115
+ - run : cd gitops && git commit -m "update tutorial-nodejs $NEW_VERSION"
116
+ - run : cd gitops && git push https://sonariorobot:$GITHUB_TOKEN@github.com/Rookout/gitops.git
121
117
122
118
test_demo_servers_up :
123
119
docker :
You can’t perform that action at this time.
0 commit comments