-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 0.1.0-ballot
- Loading branch information
Showing
2 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
name: Au eRequesting IG Profiles publish->go-publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**' | ||
|
||
|
||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: hl7fhir/ig-publisher-base # use ig publisher base image https://hub.docker.com/r/hl7fhir/ig-publisher-base | ||
steps: | ||
|
||
# to save load time can build custom image with dependencies and push to docker hub | ||
- name: install aws cli | ||
run: | | ||
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | ||
unzip -q awscliv2.zip | ||
./aws/install | ||
- name: install sushi | ||
run: | | ||
npm install -g fsh-sushi | ||
- name: Get the tag name | ||
id: get_tag | ||
run: echo "##[set-output name=tag;]${GITHUB_REF#refs/tags/}" | ||
|
||
- name: Checkout Publications Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: hl7au/publications | ||
|
||
- name: Configure AWS credentials from GitHub OIDC | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: arn:aws:iam::966489602583:role/ghactions_publications_oidc | ||
aws-region: ap-southeast-2 | ||
|
||
- name: Checkout AU erequesting Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: hl7au/au-fhir-erequesting | ||
path: hl7au/au-fhir-erequesting | ||
ref: ${{ steps.get_tag.outputs.tag }} # explicit, not usually since the default is to checkout the initiating commit | ||
|
||
- name: Checkout IG History Template Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: HL7/fhir-ig-history-template | ||
path: fhir-history | ||
|
||
- name: Checkout IG Registry Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: hl7au/ig-registry | ||
path: ig-registry | ||
|
||
- name: Update Publisher | ||
run: | | ||
echo "Updating Publisher" | ||
./_updatePublisher.sh -f -y | ||
- name: Basic Publish for Auerquesting | ||
run: | | ||
echo "Generating Publish for AueRequesting IG..." | ||
java -jar input-cache/publisher.jar -ig hl7au/au-fhir-erequesting/ig.ini | ||
- name: Create directories | ||
run: | | ||
mkdir -p webroot/fhir/ereq | ||
- name: Download package-list.json | ||
run: | | ||
rm -rf hl7au/au-fhir-ereq/package-list.json | ||
URL="https://hl7.org.au/fhir" | ||
FULL_URL="$URL/ereq/package-list.json" | ||
curl --output webroot/fhir/ereq/package-list.json --url $FULL_URL | ||
- name: Download package-feed.xml | ||
run: | | ||
curl --output webroot/fhir/package-feed.xml --url https://hl7.org.au/fhir/package-feed.xml | ||
curl --output webroot/fhir/package-feed.bak.xml --url https://hl7.org.au/fhir/package-feed.xml | ||
- name: Download publication-feed.xml | ||
run: | | ||
curl --output webroot/fhir/publication-feed.xml --url https://hl7.org.au/fhir/publication-feed.xml | ||
curl --output webroot/fhir/publication-feed.bak.xml --url https://hl7.org.au/fhir/publication-feed.xml | ||
- name: Generate Package Registry | ||
run: | | ||
java -jar input-cache/publisher.jar -generate-package-registry webroot | ||
- name: Run Auerequesting Go Publisher build | ||
run: java -jar ./input-cache/publisher.jar -go-publish -source ./hl7au/au-fhir-erequesting -web ./webroot -history ./fhir-history -registry ./ig-registry/fhir-ig-list.json -templates ./templates | ||
|
||
- name: Run Auerequesting Go Publisher build | ||
run: | | ||
cp -r fhir-history/assets-hist/ ./webroot/fhir/ereq/assets-hist/ | ||
cp -r fhir-history/dist-hist/ ./webroot/fhir/ereq/dist-hist/ | ||
- name: Zip Release | ||
uses: TheDoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'output.zip' | ||
path: './webroot/fhir' | ||
exclusions: '**/full-ig.zip' | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ig-output | ||
path: ./output.zip | ||
|
||
- name: Upload ereq Webroot to S3 | ||
run: aws s3 cp ./webroot/fhir/ereq s3://hl7au-fhir-ig/fhir/ereq --recursive --only-show-errors #ereq/${{ steps.get_tag.outputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"package-id" : "hl7.fhir.au.ereq", | ||
"version" : "0.1.0-ballot", | ||
"path" : "http://hl7.org.au/fhir/ereq/0.1.0-ballot", | ||
"mode" : "working", | ||
"status" : "ballot", | ||
"sequence" : "AU eRequesting R1", | ||
"desc" : "This snapshot is published for the August 2024 ballot and Connectathon", | ||
"first" : false, | ||
"title" : "AU eRequesting", | ||
"ci-build" : "http://build.fhir.org/ig/hl7au/au-fhir-erequesting", | ||
"category" : "National Base", | ||
"introduction" : "AU eRequesting is provided to support the use of HL7® FHIR®© for clinical requesting and ordering in an Australian context." | ||
} |