Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): revise DEMO URL triggers #1445

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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