Skip to content

Commit

Permalink
Merge branch 'main' into feat/spencer-progress-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jul 24, 2024
2 parents 4a5f528 + 1e471f8 commit aa9693a
Show file tree
Hide file tree
Showing 7 changed files with 636 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/codeowners
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* @craigyu @RMCampos @mgaseta @DerekRoberts @SLDonnelly

# Matched against directories
# /.github/workflows/ @craigyu @RMCampos @mgaseta @DerekRoberts @SLDonnelly
/sync/ @ronrobb

# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
39 changes: 39 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: DEMO Route

on:
pull_request:
types: [labeled]
workflow_dispatch:
inputs:
target:
description: 'PR number to receive DEMO URL routing'
required: true
type: number

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
demo-routing:
name: DEMO Routing
if: ${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'demo' }}
env:
DEST: demo
DOMAIN: apps.silver.devops.gov.bc.ca
REPO: ${{ github.event.repository.name }}
runs-on: ubuntu-latest
steps:
- name: Point DEMO URL to Existing Service
run: |
# Set Up Routing
# Login
oc login --token=${{ secrets.oc_token }} --server=${{ vars.oc_server }}
oc project ${{ secrets.oc_namespace }} #Safeguard!
# Delete and replace route
oc delete route/${{ env.REPO }}-${{ env.DEST }} --ignore-not-found=true
oc create route edge ${{ env.REPO }}-${{ env.DEST }} \
--hostname=${{ env.REPO }}-${{ env.DEST }}.${{ env.DOMAIN }} \
--service=${{ env.REPO }}-${{ github.event.number || inputs.target }}-frontend
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Lifecycle](https://img.shields.io/badge/Lifecycle-Maturing-007EC6)](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md)

#### Workflows
[![Analysis](https://github.com/bcgov/nr-spar/actions/workflows/analysis.yml/badge.svg)](https://github.com/bcgov/nr-spar/actions/workflows/analysis.yml)
[![ETL Sync](https://github.com/bcgov/nr-spar/actions/workflows/job-sync.yml/badge.svg)](https://github.com/bcgov/nr-spar/actions/workflows/job-sync.yml)
[![Merge](https://github.com/bcgov/nr-spar/actions/workflows/merge.yml/badge.svg)](https://github.com/bcgov/nr-spar/actions/workflows/merge.yml)
[![Nightly](https://github.com/bcgov/nr-spar/actions/workflows/job-nightly.yml/badge.svg)](https://github.com/bcgov/nr-spar/actions/workflows/job-nightly.yml)
Expand Down
1 change: 1 addition & 0 deletions frontend/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default defineConfig({
'**/my-seedlots.cy.ts',
'**/a-class-seedlot-reg-form-collection-interim.cy.ts',
'**/a-class-seedlot-reg-form-ownership.cy.ts',
'**/a-class-seedlot-reg-form-orchard.cy.ts',
'**/a-class-seedlot-reg-form-extraction.cy.ts'
],
chromeWebSecurity: false,
Expand Down
Loading

0 comments on commit aa9693a

Please sign in to comment.