-
Notifications
You must be signed in to change notification settings - Fork 39
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
[MDS-5515] SchemaSpy updates #2718
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8a5333f
a test file to run on PR to find any obvious issues, and then a rollo…
taraepp 8de7ca2
testing reuse of watch-deployment
taraepp ddcc56f
hey why can't you find my file
taraepp 91ad39b
give it the repo so it can use script files
taraepp 463a387
get rid of unnecessary test parts, add in argocd
taraepp 6d42426
testing to see if rollout status holds up discord notification
taraepp 4e3d0c3
add failure notification on timeout
taraepp c7c5bca
syntax error
taraepp 681885a
test reusable workflow
taraepp 9950891
some environment-specific workflows that call the reusable one, call …
taraepp f6a45d0
just testing if secrets: inherit is necessary
taraepp 81d1c35
just testing if secrets: inherit is necessary- but don't actually do …
taraepp 17cdd52
secrets: inherit is absolutely necessary for workflow_call- change ca…
taraepp a00f40f
rename workflow with proper name
taraepp a415d44
only rollout schemaspy after build/deploy is successful
taraepp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: SchemaSpy - DEV restart rollout | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wanted to be able to use workflow_call to have it be triggered from another workflow, and workflow_dispatch, so we can call it manually. Only needed separate files for each to allow manual calls. |
||
|
||
jobs: | ||
dev-schemaspy-rollout: | ||
uses: ./.github/workflows/schemaspy-rollout.yaml | ||
with: | ||
environment: dev | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: SchemaSpy - PROD restart rollout | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dev-schemaspy-rollout: | ||
uses: ./.github/workflows/schemaspy-rollout.yaml | ||
with: | ||
environment: prod | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: SchemaSpy - TEST restart rollout | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dev-schemaspy-rollout: | ||
uses: ./.github/workflows/schemaspy-rollout.yaml | ||
with: | ||
environment: test | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: SchemaSpy Rollout | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
environment: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
schemaspy-rollout: | ||
name: schemaspy-rollout | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Install oc | ||
uses: redhat-actions/openshift-tools-installer@v1 | ||
with: | ||
oc: "4.7" | ||
|
||
- name: oc login | ||
run: | | ||
oc login --token=${{ secrets.BUILD_TOKEN }} --server=${{ secrets.CLUSTER_API }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Restart SchemaSpy pods | ||
run: | | ||
oc -n 4c2ba9-${{ inputs.environment }} rollout restart deployment/schemaspy | ||
- name: Watch Rollout Status | ||
run: | | ||
oc -n 4c2ba9-${{ inputs.environment }} rollout status deployment/schemaspy | ||
timeout-minutes: 10 | ||
|
||
- name: Notify Discord of Rollout success | ||
if: ${{ success() }} | ||
run: ./gitops/notify_discord.sh schemaspy ${{ inputs.environment }} ${{ github.sha }} ${{ secrets.DISCORD_DEPLOYMENT_WEBHOOK }} 0 | ||
|
||
- name: Notify Discord of Rollout failure | ||
if: ${{ failure() }} | ||
run: ./gitops/notify_discord.sh schemaspy ${{ inputs.environment }} ${{ github.sha }} ${{ secrets.DISCORD_DEPLOYMENT_WEBHOOK }} 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specifically didn't put schemaspy-rollout in here because this notification will say that core-api didn't deploy, and schemaspy has its own notification anyway