Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,13 @@ jobs:
- *load_version
- *install_deps
- run: git config --global user.email "sonario@rookout.com" && git config --global user.name "sonariorobot"
- run: git clone -b staging git@github.com:Rookout/gitops-demo.git
- run: PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq -i -v '.tutorialJava.image.tag = strenv(PUBLISH_VERSION)' gitops-demo/argocd/apps/values.yaml
- run: cd gitops-demo && git add argocd/apps/values.yaml
- run: cd gitops-demo && git commit -m "update tutorial-java $NEW_VERSION"
- run: cd gitops-demo && git push https://sonariorobot:$GITHUB_TOKEN@github.com/Rookout/gitops-demo.git staging
- run: cd gitops-demo && git checkout production && git pull
- run: PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq -i -v '.tutorialJava.image.tag = strenv(PUBLISH_VERSION)' gitops-demo/argocd/apps/values.yaml
- run: cd gitops-demo && git add argocd/apps/values.yaml
- run: cd gitops-demo && git commit -m "update tutorial-java $NEW_VERSION"
- run: cd gitops-demo && git push https://sonariorobot:$GITHUB_TOKEN@github.com/Rookout/gitops-demo.git production
- run: git clone git@github.com:Rookout/gitops.git
- run: PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq eval -i -v '.apps[] |= select(.releaseName == "tutorial-java").helmValues.image.tag = strenv(PUBLISH_VERSION)' gitops/apps/demo/staging/apps.yaml
- run: PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq eval -i -v '.apps[] |= select(.releaseName == "tutorial-java").helmValues.image.tag = strenv(PUBLISH_VERSION)' gitops/apps/demo/production/apps.yaml
- run: cd gitops && git add apps/demo/staging/apps.yaml apps/demo/production/apps.yaml
- run: cd gitops && git commit -m "update tutorial-java $NEW_VERSION"
- run: cd gitops && git push https://sonariorobot:$GITHUB_TOKEN@github.com/Rookout/gitops.git


test_demo_servers_up:
docker:
Expand Down