-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BHBC-1814: Promote Dev to Test (#795)
BHBC-1814: Promote Dev to Test
- Loading branch information
Showing
158 changed files
with
8,535 additions
and
48,353 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Switch to Draft | ||
# Scales down running PODS when switching to Draft | ||
name: Draft Scale Down | ||
|
||
on: | ||
pull_request: | ||
types: [converted_to_draft] | ||
|
||
jobs: | ||
scaleDownPods: | ||
name: Scale down the pods for this PR | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILD_ID: ${{ github.event.number }} | ||
steps: | ||
# Log in to OpenShift. | ||
# Note: The secrets needed to log in are NOT available if the PR comes from a FORK. | ||
# PR's must originate from a branch off the original repo or else all openshift `oc` commands will fail. | ||
- name: Log in to OpenShift | ||
run: oc login --token=${{ secrets.TOOLS_SA_TOKEN }} --server=https://api.silver.devops.gov.bc.ca:6443 | ||
|
||
- name: Scale down | ||
run: | | ||
oc project af2668-dev | ||
oc get deploymentconfig --selector env-id=$BUILD_ID -o name | awk '{print "oc scale --replicas=0 " $1}' | bash |
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
Oops, something went wrong.