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
16 changes: 6 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,12 @@ jobs:
- *load_version
- *install_deps
- run: git config --global user.email "[email protected]" && git config --global user.name "sonariorobot"
- run: git clone -b staging [email protected]:Rookout/gitops-demo.git
- run: PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq -i -v '.tutorialPython.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-python $NEW_VERSION"
- run: cd gitops-demo && git push https://sonariorobot:[email protected]/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 '.tutorialPython.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-python $NEW_VERSION"
- run: cd gitops-demo && git push https://sonariorobot:[email protected]/Rookout/gitops-demo.git production
- run: git clone [email protected]:Rookout/gitops.git
- run: PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq eval -i -v '.apps[] |= select(.chart.name == "tutorial-python").helmValues.image.tag = strenv(PUBLISH_VERSION)' apps/demo/staging/apps.yaml
- run: PUBLISH_VERSION=$(echo $NEW_VERSION | sed 's/inner-999/1/g') yq eval -i -v '.apps[] |= select(.chart.name == "tutorial-python").helmValues.image.tag = strenv(PUBLISH_VERSION)' 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-python $NEW_VERSION"
- run: cd gitops && git push https://sonariorobot:[email protected]/Rookout/gitops.git

test_demo_servers_up:
docker:
Expand Down