-
Notifications
You must be signed in to change notification settings - Fork 7
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
c5c7928
commit b995aec
Showing
1 changed file
with
62 additions
and
62 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 |
---|---|---|
|
@@ -52,74 +52,74 @@ jobs: | |
npm install | ||
npm run build -- --pr=${{ env.PR_NUMBER }} --env=build | ||
deploy-on-dev: | ||
|
||
name: Deploy CTHUB on Dev Environment | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
needs: build | ||
|
||
steps: | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to Openshift | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-dev | ||
|
||
- name: Run BCDK deployment on CTHUB Dev environment | ||
run: | | ||
cd .pipeline | ||
echo "Deploying CTHUB ${{ env.RELEASE_NAME }} on Dev" | ||
npm install | ||
npm run deploy -- --pr=${{ env.PR_NUMBER }} --env=dev | ||
deploy-on-test: | ||
|
||
name: Deploy CTHUB on Test Environment | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
needs: deploy-on-dev | ||
|
||
steps: | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to Openshift | ||
uses: redhat-actions/[email protected] | ||
with: | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-test | ||
|
||
- name: Ask for approval for CTHUB Test deployment | ||
uses: trstringer/[email protected] | ||
with: | ||
secret: ${{ github.TOKEN }} | ||
approvers: emi-hi,tim738745,kuanfandevops,JulianForeman | ||
minimum-approvals: 1 | ||
issue-title: "CTHUB ${{ env.RELEASE_NAME }} Test Deployment" | ||
|
||
- name: Run BCDK deployment on CTHUB Test environment | ||
run: | | ||
cd .pipeline | ||
echo "Deploying CTHUB ${{ env.RELEASE_NAME }} on Test" | ||
npm install | ||
npm run deploy -- --pr=${{ env.PR_NUMBER }} --env=test | ||
# deploy-on-dev: | ||
|
||
# name: Deploy CTHUB on Dev Environment | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 60 | ||
# needs: build | ||
|
||
# steps: | ||
|
||
# - name: Check out repository | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
# with: | ||
# openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | ||
# openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
# insecure_skip_tls_verify: true | ||
# namespace: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-dev | ||
|
||
# - name: Run BCDK deployment on CTHUB Dev environment | ||
# run: | | ||
# cd .pipeline | ||
# echo "Deploying CTHUB ${{ env.RELEASE_NAME }} on Dev" | ||
# npm install | ||
# npm run deploy -- --pr=${{ env.PR_NUMBER }} --env=dev | ||
|
||
# deploy-on-test: | ||
|
||
# name: Deploy CTHUB on Test Environment | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 60 | ||
# needs: deploy-on-dev | ||
|
||
# steps: | ||
|
||
# - name: Check out repository | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Log in to Openshift | ||
# uses: redhat-actions/[email protected] | ||
# with: | ||
# openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | ||
# openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
# insecure_skip_tls_verify: true | ||
# namespace: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-test | ||
|
||
# - name: Ask for approval for CTHUB Test deployment | ||
# uses: trstringer/[email protected] | ||
# with: | ||
# secret: ${{ github.TOKEN }} | ||
# approvers: emi-hi,tim738745,kuanfandevops,JulianForeman | ||
# minimum-approvals: 1 | ||
# issue-title: "CTHUB ${{ env.RELEASE_NAME }} Test Deployment" | ||
|
||
# - name: Run BCDK deployment on CTHUB Test environment | ||
# run: | | ||
# cd .pipeline | ||
# echo "Deploying CTHUB ${{ env.RELEASE_NAME }} on Test" | ||
# npm install | ||
# npm run deploy -- --pr=${{ env.PR_NUMBER }} --env=test | ||
|
||
deploy-on-prod: | ||
|
||
name: Deploy CTHUB on Prod Environment | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
needs: deploy-on-test | ||
# needs: deploy-on-test | ||
|
||
steps: | ||
|
||
|