-
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.
- Loading branch information
1 parent
2bddd3a
commit 0e68bb0
Showing
4 changed files
with
17 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,7 @@ jobs: | |
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
- name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
uses: smlgbl/oc-login@main | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.openshift-server }} | ||
openshift_token: ${{ secrets.openshift-token }} | ||
|
@@ -63,8 +62,7 @@ jobs: | |
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
- name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
uses: smlgbl/oc-login@main | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.openshift-server }} | ||
openshift_token: ${{ secrets.openshift-token }} | ||
|
@@ -90,8 +88,7 @@ jobs: | |
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
- name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
uses: smlgbl/oc-login@main | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.openshift-server }} | ||
openshift_token: ${{ secrets.openshift-token }} | ||
|
@@ -117,8 +114,7 @@ jobs: | |
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
- name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
uses: smlgbl/oc-login@main | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.openshift-server }} | ||
openshift_token: ${{ secrets.openshift-token }} | ||
|
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 |
---|---|---|
|
@@ -52,8 +52,7 @@ jobs: | |
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
- name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
uses: smlgbl/oc-login@main | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.openshift-server }} | ||
openshift_token: ${{ secrets.openshift-token }} | ||
|
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 |
---|---|---|
|
@@ -8,42 +8,38 @@ on: | |
type: string | ||
dev-suffix: | ||
required: true | ||
type: string | ||
type: string | ||
secrets: | ||
dev-namespace: | ||
required: true | ||
itvr-dev-username: | ||
required: true | ||
itvr-dev-password: | ||
required: true | ||
required: true | ||
openshift-server: | ||
required: true | ||
openshift-token: | ||
required: true | ||
|
||
jobs: | ||
required: true | ||
openshift-token: | ||
required: true | ||
|
||
jobs: | ||
database: | ||
|
||
name: Start Database | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
|
||
steps: | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
- name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
uses: smlgbl/oc-login@main | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.openshift-server }} | ||
openshift_token: ${{ secrets.openshift-token }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ secrets.dev-namespace }} | ||
namespace: ${{ secrets.dev-namespace }} | ||
|
||
- name: Setup Database | ||
shell: bash {0} | ||
|
@@ -65,4 +61,3 @@ jobs: | |
oc -n ${{ secrets.dev-namespace }} exec itvr-spilo${{ inputs.dev-suffix }}-0 -- psql -c "ALTER SYSTEM SET log_checkpoints='off'" || true | ||
oc -n ${{ secrets.dev-namespace }} exec itvr-spilo${{ inputs.dev-suffix }}-0 -- psql -c "select pg_reload_conf()" || true | ||
fi | ||
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 |
---|---|---|
|
@@ -4,30 +4,27 @@ on: | |
pull_request: | ||
types: closed | ||
branches: | ||
- 'release-*' | ||
- "release-*" | ||
|
||
env: | ||
TOOLS_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-tools | ||
DEV_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-dev | ||
|
||
jobs: | ||
|
||
teardown-on-dev: | ||
if: endsWith( github.event.pull_request.title, 'build-on-dev' ) | ||
name: Tear ITVR down on Dev | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
||
steps: | ||
|
||
steps: | ||
- name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
uses: smlgbl/oc-login@main | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ env.TOOLS_NAMESPACE }} | ||
namespace: ${{ env.TOOLS_NAMESPACE }} | ||
|
||
- name: Undeploy on Dev | ||
shell: bash {0} | ||
|