Skip to content

Commit

Permalink
updater refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Oct 23, 2023
1 parent 15a368b commit 1df55b8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/update-addresses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Release

on:
# TODO: remove and just use schedule, once this is working
# push:
# branches:
# - master
push:
branches:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '23 01 01 3,6,9,12 *'
Expand All @@ -25,18 +25,20 @@ jobs:
ELASTIC_USERNAME: ${{ secrets.TF_VAR_elastic_username }}
with:
runCmd: |
npm ci --include dev
touch .env
npm run build
npm run start:loader:geo:OT:prod || true
npm run start:loader:geo:ACT:prod || true
npm run start:loader:geo:NT:prod || true
npm run start:loader:geo:TAS:prod || true
npm run start:loader:geo:SA:prod || true
npm run start:loader:geo:WA:prod || true
npm run start:loader:geo:QLD:prod || true
npm run start:loader:geo:VIC:prod || true
npm run start:loader:geo:NSW:prod || true
npm run install-globally
COVERED_STATES=OT NODE_OPTIONS=--max_old_space_size=8196 addressr-loader
# npm ci --include dev
# touch .env
# npm run build
# npm run start:loader:geo:OT:prod || true
# npm run start:loader:geo:ACT:prod || true
# npm run start:loader:geo:NT:prod || true
# npm run start:loader:geo:TAS:prod || true
# npm run start:loader:geo:SA:prod || true
# npm run start:loader:geo:WA:prod || true
# npm run start:loader:geo:QLD:prod || true
# npm run start:loader:geo:VIC:prod || true
# npm run start:loader:geo:NSW:prod || true
env: |
ELASTIC_PORT=443
ELASTIC_HOST
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"SEARCH_IMAGE": "opensearchproject/opensearch:1.2.4"
},
"scripts": {
"install-globally": "npm install -g ${npm_package_name}:${npm_package_version}",
"deploy:prod": "deploy/deploy.sh",
"deploy:test": "deploy/deploy.sh",
"turbo:build": "turbo run build",
Expand Down

0 comments on commit 1df55b8

Please sign in to comment.