Skip to content

Commit

Permalink
#412 - Switch - Ontology - get from assets
Browse files Browse the repository at this point in the history
- change download url for ontology files accordingly
  • Loading branch information
michael-82 committed Dec 10, 2024
1 parent 7e59cf6 commit d35aece
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/download-and-unpack-ontology.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e

mkdir --parents .github/integration-test/ontology/ui_profiles .github/integration-test/ontology/migration
curl -L https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/${ONTOLOGY_GIT_TAG}/example/fdpg-ontology/backend.zip -o .github/integration-test/ontology/backend.zip
curl -L https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download/${ONTOLOGY_GIT_TAG}/backend.zip -o .github/integration-test/ontology/backend.zip
unzip -jod .github/integration-test/ontology/ui_profiles/ .github/integration-test/ontology/backend.zip
mv .github/integration-test/ontology/ui_profiles/R__Load_latest_ui_profile.sql .github/integration-test/ontology/migration/
rm .github/integration-test/ontology/backend.zip
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ jobs:
needs: tests
runs-on: ubuntu-latest
env:
ONTOLOGY_GIT_TAG: v3.0.0-test.11
ONTOLOGY_GIT_TAG: v3.0.1
ELASTIC_HOST: http://localhost:9200
ELASTIC_FILEPATH: https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/TAGPLACEHOLDER/example/fdpg-ontology/
ELASTIC_FILEPATH: https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download/TAGPLACEHOLDER/
ELASTIC_FILENAME: elastic.zip
OVERRIDE_EXISTING: true

Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ services:
environment:
ES_HOST: http://dataportal-elastic
ES_PORT: 9200
ONTO_GIT_TAG: v3.0.0
ONTO_REPO: https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/
ONTO_RELATIVE_PATH: /example/fdpg-ontology/
ONTO_GIT_TAG: v3.0.1
ONTO_REPO: https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download
DOWNLOAD_FILENAME: elastic.zip
EXIT_ON_EXISTING_INDICES: false
FORCE_INDEX_CREATION: true
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
<goal>download-single</goal>
</goals>
<configuration>
<url>https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/${ontology-tag}/example/fdpg-ontology</url>
<url>https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download/${ontology-tag}/</url>
<fromFile>backend.zip</fromFile>
<toDir>${ontoDirectory.download}</toDir>
</configuration>
Expand All @@ -435,7 +435,7 @@
<goal>download-single</goal>
</goals>
<configuration>
<url>https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/${ontology-tag}/example/fdpg-ontology</url>
<url>https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download/${ontology-tag}/</url>
<fromFile>mapping.zip</fromFile>
<toDir>${ontoDirectory.download}</toDir>
</configuration>
Expand Down

0 comments on commit d35aece

Please sign in to comment.