Skip to content

Commit

Permalink
fix(ci): revise DEMO URL triggers (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jul 24, 2024
1 parent dc66232 commit 5866425
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: DEMO Route

on:
label:
types: [created]
pull_request:
types: [labeled]
workflow_dispatch:
inputs:
target:
Expand All @@ -17,7 +17,7 @@ concurrency:
jobs:
demo-routing:
name: DEMO Routing
if: ${{ event.type == 'workflow_dispatch' || github.event.label.name == 'demo' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'demo' }}
env:
DEST: demo
DOMAIN: apps.silver.devops.gov.bc.ca
Expand All @@ -36,4 +36,5 @@ jobs:
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
--service=${{ env.REPO }}-1436-frontend
# --service=${{ env.REPO }}-${{ github.event.number || inputs.target }}-frontend

0 comments on commit 5866425

Please sign in to comment.