Skip to content

Commit

Permalink
Uncommented backend and frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
dallascrichmond committed Oct 18, 2024
1 parent f9f47db commit 6319f64
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 38 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,39 +57,39 @@ jobs:
-p TAG=${{ inputs.tag }}
-p TARGET=${{ inputs.target }}

# backend:
# name: Backend
# needs: [database]
# environment: ${{ inputs.environment }}
# runs-on: ubuntu-22.04
# steps:
# - name: Deploy Backend
# uses: bcgov-nr/[email protected]
# with:
# oc_namespace: ${{ vars.OC_NAMESPACE }}
# oc_server: ${{ vars.OC_SERVER }}
# oc_token: ${{ secrets.OC_TOKEN }}
# file: backend/openshift.deploy.yml
# overwrite: true
# parameters:
# -p TAG=${{ inputs.tag }} -p TARGET=${{ inputs.target }}
# verification_path: /api/health
# verification_retry_attempts: "5"
# verification_retry_seconds: "15"
backend:
name: Backend
needs: [init, database]
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
steps:
- name: Deploy Backend
uses: bcgov-nr/[email protected]
with:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
file: backend/openshift.deploy.yml
overwrite: true
parameters:
-p TAG=${{ inputs.tag }} -p TARGET=${{ inputs.target }}
verification_path: /api/health
verification_retry_attempts: "5"
verification_retry_seconds: "15"

# frontend:
# name: Frontend
# # needs: [backend]
# environment: ${{ inputs.environment }}
# runs-on: ubuntu-22.04
# steps:
# - name: Deploy Frontend
# uses: bcgov-nr/[email protected]
# with:
# oc_namespace: ${{ vars.OC_NAMESPACE }}
# oc_server: ${{ vars.OC_SERVER }}
# oc_token: ${{ secrets.OC_TOKEN }}
# file: frontend/openshift.deploy.yml
# overwrite: true
# parameters:
# -p TAG=${{ inputs.tag }} -p TARGET=${{ inputs.target }}
frontend:
name: Frontend
needs: [init, database, backend]
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
steps:
- name: Deploy Frontend
uses: bcgov-nr/[email protected]
with:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
file: frontend/openshift.deploy.yml
overwrite: true
parameters:
-p TAG=${{ inputs.tag }} -p TARGET=${{ inputs.target }}
3 changes: 1 addition & 2 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
# package: [database, backend, frontend]
package: [database]
package: [database, backend, frontend]
timeout-minutes: 20
steps:
- uses: bcgov-nr/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion common/openshift.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
required: true
- name: DB_PORT
required: true
object:
objects:
- apiVersion: v1
kind: Secret
metadata:
Expand Down

0 comments on commit 6319f64

Please sign in to comment.