Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,10 @@ updates:
interval: daily
time: "11:00"
open-pull-requests-limit: 5

- package-ecosystem: npm
directory: "/scripts/insert-json"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 5
3 changes: 3 additions & 0 deletions scripts/insert-json/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DB_PASS=
DB_URL=
DB_NAME=
201 changes: 0 additions & 201 deletions scripts/insert-json/.package-lock.json

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/insert-json/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Data population script

This directory contains a program to facilitate the insertion of organization and domain data from a .json file.
This directory contains a program to facilitate the insertion of organization and domain data from a `organization-domains.json` file.

The .json file used for input must adhere to the following structure:
The `organization-domains.json` file used for input must adhere to the following structure:

```
"<English Acronym-French Acronym>": {
Expand Down
39 changes: 39 additions & 0 deletions scripts/insert-json/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
id: start_arango
entrypoint: /bin/sh
args:
[
'-c',
'docker run -d --network=cloudbuild -p=8529:8529 -e ARANGO_ROOT_PASSWORD=$_DB_PASS --name=arangodb arangodb',
]

- name: mikewilliamson/wait-for
id: wait_arango
args: ['arangodb:8529']

- name: node:alpine
id: install
dir: scripts/insert-json
entrypoint: npm
args: ['ci', '--no-optional']

- name: node:alpine
id: lint
dir: scripts/insert-json
entrypoint: npm
args: ['run', lint]

- name: node:alpine
id: test
dir: scripts/insert-json
entrypoint: npm
args: ['run', 'test']
env:
- DB_PASS=$_DB_PASS
- DB_URL=$_DB_URL
- DB_NAME=$_DB_NAME

timeout: 1200s
options:
machineType: 'E2_HIGHCPU_8'
Loading