Skip to content

Commit

Permalink
In CI pipeline run Merkely reporter after successful deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Jul 11, 2021
1 parent 77f8362 commit 6f752e8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
command: ./.circleci/merkely_log_deployment.sh prod


scrape-cluster:
merkely-run-reporter:
docker:
- image: ghcr.io/merkely-development/reporter:latest
steps:
Expand All @@ -60,10 +60,10 @@ jobs:
command: ./.circleci/connect-to-k8s.sh
- run:
name: Scrape cluster production environment and send to app.merkely.com
command: reporter report env k8s production --owner cyber-dojo --namespace prod,beta
command: reporter report env k8s production --owner cyber-dojo --namespace beta,prod
- run:
name: Scrape cluster production environment and send to staging.app.merkely.com
command: reporter report env k8s production -H https://staging.app.merkely.com --owner cyber-dojo --namespace prod,beta
command: reporter report env k8s production -H https://staging.app.merkely.com --owner cyber-dojo --namespace beta,prod

workflows:
version: 2
Expand Down Expand Up @@ -96,6 +96,10 @@ workflows:
context: cyberdojo-context
requires: [ deploy-to-prod ]

- merkely-run-reporter:
context: cyberdojo-context
requires: [ merkely-log-deployment-to-prod ]

every-hour:
triggers:
- schedule:
Expand All @@ -105,7 +109,7 @@ workflows:
branches:
only: [ master ]
jobs:
- scrape-cluster:
- merkely-run-reporter:
context: cyberdojo-context
filters:
branches:
Expand Down

0 comments on commit 6f752e8

Please sign in to comment.