Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jan 25, 2024
1 parent faa6278 commit c2dc7d0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# If merged into main, then handle any image promotions
image-promotions:
name: Image Promotions
# if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-22.04
strategy:
matrix:
Expand Down
86 changes: 43 additions & 43 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: backend
triggers: ('backend/')
- name: frontend
# triggers: ('frontend/')
triggers: ('frontend/')
steps:
- uses: actions/checkout@v4
- uses: bcgov-nr/action-builder-ghcr@v2.0.1
Expand All @@ -89,45 +89,45 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
triggers: ${{ matrix.triggers }}

# deploys:
# name: Deploys
# if: "!github.event.pull_request.head.repo.fork"
# needs: [builds]
# runs-on: ubuntu-22.04
# strategy:
# matrix:
# name: [backend, frontend, fluentbit]
# include:
# - name: backend
# file: backend/openshift.deploy.yml
# triggers: ('common/' 'backend/' 'frontend/')
# verification_path: /actuator/health
# parameters:
# -p MIN_REPLICAS=1
# -p MAX_REPLICAS=2
# - name: frontend
# file: frontend/openshift.deploy.yml
# triggers: ('common/' 'backend/' 'frontend/')
# parameters:
# -p VITE_USER_POOLS_WEB_CLIENT_ID=${{ vars.VITE_USER_POOLS_WEB_CLIENT_ID }}
# -p MIN_REPLICAS=1
# -p MAX_REPLICAS=2
# -p FAM_ROUTE="$(( ${{ github.event.number }} % 50 ))"
# - name: fluentbit
# file: common/openshift.fluentbit.yml
# overwrite: true
# triggers: ('common/' 'backend/' 'frontend/')
# steps:
# - uses: bcgov-nr/action-deployer-openshift@v2.0.0
# with:
# file: ${{ matrix.file }}
# oc_namespace: ${{ vars.OC_NAMESPACE }}
# oc_server: ${{ vars.OC_SERVER }}
# oc_token: ${{ secrets.OC_TOKEN }}
# overwrite: true
# parameters:
# -p ZONE=${{ github.event.number }}
# -p NAME=${{ github.event.repository.name }}
# ${{ matrix.parameters }}
# triggers: ${{ matrix.triggers }}
# verification_path: ${{ matrix.verification_path }}
deploys:
name: Deploys
if: "!github.event.pull_request.head.repo.fork"
needs: [builds]
runs-on: ubuntu-22.04
strategy:
matrix:
name: [backend, frontend, fluentbit]
include:
- name: backend
file: backend/openshift.deploy.yml
triggers: ('common/' 'backend/' 'frontend/')
verification_path: /actuator/health
parameters:
-p MIN_REPLICAS=1
-p MAX_REPLICAS=2
- name: frontend
file: frontend/openshift.deploy.yml
triggers: ('common/' 'backend/' 'frontend/')
parameters:
-p VITE_USER_POOLS_WEB_CLIENT_ID=${{ vars.VITE_USER_POOLS_WEB_CLIENT_ID }}
-p MIN_REPLICAS=1
-p MAX_REPLICAS=2
-p FAM_ROUTE="$(( ${{ github.event.number }} % 50 ))"
- name: fluentbit
file: common/openshift.fluentbit.yml
overwrite: true
triggers: ('common/' 'backend/' 'frontend/')
steps:
- uses: bcgov-nr/action-deployer-openshift@v2.0.0
with:
file: ${{ matrix.file }}
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: true
parameters:
-p ZONE=${{ github.event.number }}
-p NAME=${{ github.event.repository.name }}
${{ matrix.parameters }}
triggers: ${{ matrix.triggers }}
verification_path: ${{ matrix.verification_path }}

0 comments on commit c2dc7d0

Please sign in to comment.