diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 58170fc..bd3e611 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -37,10 +37,23 @@ jobs: echo "Building FHIR IG using copy approach..." # Create a container (don't start yet) + # CONTAINER_ID=$(docker create \ + # hl7fhir/ig-publisher-base:latest \ + # /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash" \ + # /bin/bash -c "\. '$HOME/.nvm/nvm.sh'" \ + # /bin/bash -c "nvm install 22" \ + # /bin/bash -c "npm install -g fsh-sushi" \ + # /bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") + CONTAINER_ID=$(docker create \ hl7fhir/ig-publisher-base:latest \ - /bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") - + /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \ + . \$HOME/.nvm/nvm.sh && \ + nvm install 22 --delete-prefix && \ + npm install -g fsh-sushi && \ + cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") + + echo "Container ID: $CONTAINER_ID" # Copy all source files into the container diff --git a/Dockerfile.serve b/Dockerfile.serve index 26d6268..15a3a00 100644 --- a/Dockerfile.serve +++ b/Dockerfile.serve @@ -38,4 +38,5 @@ EXPOSE 80 # Start Nginx in foreground # CMD ["nginx", "-g", "daemon off;"] -CMD ["nginx", "-g", "daemon off;", "-c", "/etc/nginx/nginx.conf"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;", "-c", "/etc/nginx/nginx.conf"] + diff --git a/ig.ini b/ig.ini index ccecc2d..9c16c24 100644 --- a/ig.ini +++ b/ig.ini @@ -1,9 +1,11 @@ [IG] # ini file for the Implementation Guide publisher # see comments below for instructions - -ig = fsh-generated/resources/ImplementationGuide-bd.fhir.core.json +ig = input/myig.xml +#template = fhir.base.template#current template = #bd-national-template +#template = D:\Git\templates\ig-template-base +#template = #local-template ########################## ### ig.ini parameters: ### @@ -41,8 +43,5 @@ examples: # other parameters are defined in the ImplementationGuide resource: # https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters -# for more documentation on implementation guides and templates, see the FHIR Guidance ImplementationGuide -# http://build.fhir.org/ig/FHIR/ig-guidance -output = /var/www/html - - +# for more documentation on implementation guides and templates, see the FHIR Guidance ImplementationGuide +# http://build.fhir.org/ig/FHIR/ig-guidance \ No newline at end of file diff --git a/sushi-config.yaml b/sushi-config.yaml index d3645b4..6df7cf0 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -10,7 +10,7 @@ version: 0.2.0 fhirVersion: 4.0.1 copyrightYear: 2025+ releaseLabel: CI Build -FSHOnly: false +FSHOnly: true publisher: name: Directorate General of Health Services (DGHS), Bangladesh url: https://dghs.gov.bd