Skip to content

Commit

Permalink
ci: fix broken demo deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Jun 13, 2024
1 parent 266ff1b commit e088dea
Show file tree
Hide file tree
Showing 15 changed files with 154 additions and 239 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-to-radix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ jobs:
run: yarn install

- name: Reset application
working-directory: ./example
working-directory: ./application
env:
RESET_APP_TOKEN: ${{ env.RESET_APP_TOKEN }}
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD_DEV }}
run: |
sleep 30 # Wait for the services to be restarted
rm -rf app/data_source_templates
mv app/data_source_templates_radix_demo app/data_source_templates
./reset-app.sh dev ${{ env.RESET_APP_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
with:
image-tags: latest,${{ inputs.release-tag }}

# deploy:
# needs: publish-image
# uses: ./.github/workflows/deploy-to-radix.yaml
# with:
# radix-environment: "dev"
deploy:
needs: publish-image
uses: ./.github/workflows/deploy-to-radix.yaml
with:
radix-environment: "dev"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ packages/dm-core-plugins/src/build.css

*.tsbuildinfo
/example/job_handlers/reverse_description/results/
/example/app/data_sources/
63 changes: 0 additions & 63 deletions _schema/blueprint.schema.json

This file was deleted.

65 changes: 0 additions & 65 deletions _schema/recipe.schema.json

This file was deleted.

104 changes: 0 additions & 104 deletions _schema/recipeConfig.schema.json

This file was deleted.

17 changes: 17 additions & 0 deletions example/app/data_source_templates/DemoDataSource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "DemoDataSource",
"global_folders": ["global"],
"repositories": {
"exampleRepo": {
"type": "mongo-db",
"collection": "default",
"data_types": ["blob"],
"database": "DemoDataSource",
"host": "db",
"password": "maf",
"port": 27017,
"tls": false,
"username": "maf"
}
}
}
16 changes: 16 additions & 0 deletions example/app/data_source_templates/ExtraDataSource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "ExtraDataSource",
"repositories": {
"exampleRepo": {
"type": "mongo-db",
"collection": "default",
"data_types": [],
"database": "ExtraDataSource",
"host": "db",
"password": "maf",
"port": 27017,
"tls": false,
"username": "maf"
}
}
}
16 changes: 16 additions & 0 deletions example/app/data_source_templates/WorkflowDS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "WorkflowDS",
"repositories": {
"forecastDB": {
"type": "mongo-db",
"host": "db",
"port": 27017,
"username": "maf",
"password": "maf",
"tls": false,
"database": "workflowDS",
"collection": "default",
"data_types": []
}
}
}
15 changes: 15 additions & 0 deletions example/app/data_source_templates/system_DS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "system",
"repositories": {
"a": {
"type": "mongo-db",
"host": "db",
"port": 27017,
"username": "maf",
"password": "maf",
"tls": false,
"database": "DMSS-core",
"collection": "DMSS-core"
}
}
}
17 changes: 17 additions & 0 deletions example/app/data_source_templates_radix_demo/DemoDataSource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "DemoDataSource",
"global_folders": ["global"],
"repositories": {
"exampleRepo": {
"type": "mongo-db",
"collection": "default",
"data_types": ["blob"],
"database": "DemoDataSource",
"host": "db",
"password": "$MONGO_PASSWORD",
"port": 27017,
"tls": false,
"username": "maf"
}
}
}
16 changes: 16 additions & 0 deletions example/app/data_source_templates_radix_demo/ExtraDataSource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "ExtraDataSource",
"repositories": {
"exampleRepo": {
"type": "mongo-db",
"collection": "default",
"data_types": [],
"database": "ExtraDataSource",
"host": "db",
"password": "$MONGO_PASSWORD",
"port": 27017,
"tls": false,
"username": "maf"
}
}
}
16 changes: 16 additions & 0 deletions example/app/data_source_templates_radix_demo/WorkflowDS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "WorkflowDS",
"repositories": {
"forecastDB": {
"type": "mongo-db",
"host": "db",
"port": 27017,
"username": "maf",
"password": "$MONGO_PASSWORD",
"tls": false,
"database": "workflowDS",
"collection": "default",
"data_types": []
}
}
}
Loading

0 comments on commit e088dea

Please sign in to comment.