Skip to content

Commit

Permalink
fix(ci): DEMO workflow (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jan 19, 2024
1 parent 86f28e9 commit 5a00416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/merge-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Merge to Demo

on:
push:
branches:
- demo
branches: [demo]

env:
ZONE: demo
Expand All @@ -25,17 +24,13 @@ jobs:
- package: admin
build_context: ./
build_file: admin/Dockerfile
triggers: ('admin/' 'libs/')
- package: api
build_context: ./
build_file: api/Dockerfile
triggers: ('api/' 'libs/')
- package: db
triggers: ('db')
- package: public
build_context: ./
build_file: public/Dockerfile
triggers: ('public/' 'libs/')
steps:
- uses: actions/checkout@v4
- uses: bcgov-nr/[email protected]
Expand All @@ -44,16 +39,12 @@ jobs:
build_context: ${{ matrix.build_context }}
build_file: ${{ matrix.build_file }}
tag: ${{ env.ZONE }}
tag_fallback: test
token: ${{ secrets.GITHUB_TOKEN }}
triggers: ${{ matrix.triggers }}

deploy:
name: DEMO Deploys
needs: [builds]
environment: test
env:
ZONE: demo
runs-on: ubuntu-22.04
timeout-minutes: 10
strategy:
Expand All @@ -64,6 +55,7 @@ jobs:
file: api/openshift.deploy.yml
overwrite: true
parameters:
-p OC_NAMESPACE=${{ vars.OC_NAMESPACE }}
-p URL=fom-demo.apps.silver.devops.gov.bc.ca
-p [email protected]
-p DB_TESTDATA=true
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Merge to Main

on:
push:
branches:
- main
branches: [main]
paths-ignore:
- ".github/ISSUE_TEMPLATE/*"
- "**.md"
Expand Down

0 comments on commit 5a00416

Please sign in to comment.