Skip to content

Commit

Permalink
chore(ci): sync vars (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jul 8, 2024
1 parent 36640bb commit 046fc9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ jobs:
file: sync/openshift.deploy.yml
overwrite: true
parameters:
-p TEST_MODE=${{ github.event_name == 'pull_request' && '1' || '0' }}
-p TEST_MODE=${{ github.event_name == 'pull_request' && 'true' || 'true' }} # Revise after TEST is ready!
# post_rollout: ${{ inputs.etl == 'true' && 'oc create job ${{ env.RUN_JOB }} --from=cronjob/${{ env.CRONJOB }}' || ''}}
# triggers: ('sync/')

steps:
- uses: bcgov-nr/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ services:
target: ./sync/requirements.txt
environment:
<<: *postgres-vars
TEST_MODE: ${TEST_MODE:-0}
EXECUTION_ID: ${EXECUTION_ID:-0}
TEST_MODE: ${TEST_MODE:-true}
EXECUTION_ID: ${EXECUTION_ID:-100}
DATABASE_HOST: database
ORACLE_HOST: ${ORACLE_HOST:-nrcdb03.bcgov}
ORACLE_PASSWORD: ${ORACLE_PASSWORD}
Expand Down
4 changes: 2 additions & 2 deletions sync/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ parameters:
value: sync
- name: EXECUTION_ID
description: Process execution ID for running ETL Tool
value: "0"
value: "100"
- name: ORG
description: GitHub organization name
value: bcgov
Expand All @@ -24,7 +24,7 @@ parameters:
value: nr-spar
- name: TEST_MODE
description: "Run in test mode"
value: "0"
value: "true"

### Usually a bad idea - not recommended
- name: CRON_MINUTES
Expand Down

0 comments on commit 046fc9a

Please sign in to comment.