Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RK-19956 - migration-to-gitops-repo #79

Merged
merged 1 commit into from
Oct 31, 2023
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 "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 '.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:$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 '.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:$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(.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:$GITHUB_TOKEN@github.com/Rookout/gitops.git

test_demo_servers_up:
docker:
Expand Down
Loading