Skip to content

Commit 1af3c4e

Browse files
committed
Uplaad to aucore and smartonfhir tenants
1 parent 7cec7b0 commit 1af3c4e

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

.github/workflows/main.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ jobs:
2626
- run: yarn build
2727
- name: Build resources bundle
2828
run: docker compose run --rm build-resources
29-
- name: Upload bundle to FHIR server
30-
run: |
31-
curl --fail-with-body -X POST \
32-
-u "${{ secrets.BASIC_AUTH }}" \
33-
-H "Content-Type: application/fhir+json" \
34-
-d @bundles/bundle.json \
35-
https://aucore.aidbox.beda.software/fhir
29+
- name: Upload bundle artifact
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: bundle
33+
path: bundles/bundle.json
3634
- name: copy file via ssh
3735
uses: appleboy/scp-action@v0.1.7
3836
with:
@@ -41,3 +39,24 @@ jobs:
4139
key: ${{ secrets.SSH_KEY}}
4240
source: build
4341
target: emr-au-core-static
42+
upload-bundle:
43+
name: Upload bundle
44+
needs: build
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
fhir_server:
49+
- https://aucore.aidbox.beda.software
50+
- https://smartonfhir.aidbox.beda.software
51+
steps:
52+
- name: Download bundle artifact
53+
uses: actions/download-artifact@v4
54+
with:
55+
name: bundle
56+
- name: Upload bundle to FHIR server
57+
run: |
58+
curl --fail-with-body -X POST \
59+
-u "${{ secrets.BASIC_AUTH }}" \
60+
-H "Content-Type: application/fhir+json" \
61+
-d @bundle.json \
62+
${{ matrix.fhir_server }}/fhir

0 commit comments

Comments
 (0)