55 secrets :
66 SONAR_TOKEN :
77 required : false
8+ CLOUD_FORMATION_DEPLOY_ROLE :
9+ required : false
810 inputs :
911 install_java :
1012 type : boolean
2325 type : boolean
2426 description : Toggle to reinstall poetry on top of python version installed by asdf.
2527 default : false
28+ dev_container_ecr :
29+ type : string
30+ description : " The name of the ECR repository to push the dev container image to."
31+ required : false
32+ dev_container_image_tag :
33+ type : string
34+ description : " The tag to use for the dev container image."
35+ required : false
2636jobs :
2737 quality_checks :
2838 runs-on : ubuntu-22.04
@@ -357,7 +367,7 @@ jobs:
357367 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
358368 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
359369
360- build_dev_container :
370+ build_dev_container_x64 :
361371 runs-on : ubuntu-22.04
362372 steps :
363373 - name : Checkout code
@@ -368,5 +378,78 @@ jobs:
368378
369379 - name : Build dev container
370380 run : |
371- docker buildx create --use
372- docker buildx build --platform linux/amd64,linux/arm64 -f .devcontainer/Dockerfile -t dev-container-image .
381+ docker build -f .devcontainer/Dockerfile -t dev-container-image .
382+ # - name: Configure AWS Credentials
383+ # uses: aws-actions/configure-aws-credentials@v5
384+ # id: connect-aws-deploy
385+ # with:
386+ # aws-region: eu-west-2
387+ # role-to-assume: ${{ secrets.CLOUD_FORMATION_DEPLOY_ROLE }}
388+ # role-session-name: dev-container-build
389+ # output-credentials: true
390+
391+ # - name: Retrieve AWS Account ID
392+ # id: retrieve-deploy-account-id
393+ # run: echo "ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)" >> "$GITHUB_ENV"
394+
395+ # - name: Login to Amazon ECR
396+ # id: login-ecr-push-image
397+ # run: |
398+ # aws ecr get-login-password --region eu-west-2 | docker login --username AWS --password-stdin ${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com
399+
400+ # - name: Push FHIR Facade image to Amazon ECR
401+ # run: |
402+ # docker tag "dev-container-image" "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/${{inputs.DEV_CONTAINER_ECR}}:${{ inputs.DEV_CONTAINER_IMAGE_TAG }}"
403+ # docker push "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/${{inputs.DEV_CONTAINER_ECR}}:${{ inputs.DEV_CONTAINER_IMAGE_TAG }}"
404+
405+ # - name: Check dev container scan results
406+ # env:
407+ # REPOSITORY_NAME: ${{inputs.DEV_CONTAINER_ECR}}
408+ # IMAGE_TAG: ${{ inputs.DEV_CONTAINER_IMAGE_TAG }}
409+ # working-directory: .github/scripts
410+ # run: |
411+ # ./check_ecr_image_scan_results.sh
412+
413+ build_dev_container_arm64 :
414+ runs-on : macos-latest
415+ steps :
416+ - name : Checkout code
417+ uses : actions/checkout@v5
418+ with :
419+ ref : ${{ env.BRANCH_NAME }}
420+ fetch-depth : 0
421+
422+ - name : Build dev container
423+ run : |
424+ docker build -f .devcontainer/Dockerfile -t dev-container-image .
425+
426+ # - name: Configure AWS Credentials
427+ # uses: aws-actions/configure-aws-credentials@v5
428+ # id: connect-aws-deploy
429+ # with:
430+ # aws-region: eu-west-2
431+ # role-to-assume: ${{ secrets.CLOUD_FORMATION_DEPLOY_ROLE }}
432+ # role-session-name: dev-container-build
433+ # output-credentials: true
434+
435+ # - name: Retrieve AWS Account ID
436+ # id: retrieve-deploy-account-id
437+ # run: echo "ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)" >> "$GITHUB_ENV"
438+
439+ # - name: Login to Amazon ECR
440+ # id: login-ecr-push-image
441+ # run: |
442+ # aws ecr get-login-password --region eu-west-2 | docker login --username AWS --password-stdin ${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com
443+
444+ # - name: Push FHIR Facade image to Amazon ECR
445+ # run: |
446+ # docker tag "dev-container-image" "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/${{inputs.DEV_CONTAINER_ECR}}:${{ inputs.DEV_CONTAINER_IMAGE_TAG }}"
447+ # docker push "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/${{inputs.DEV_CONTAINER_ECR}}:${{ inputs.DEV_CONTAINER_IMAGE_TAG }}"
448+
449+ # - name: Check dev container scan results
450+ # env:
451+ # REPOSITORY_NAME: ${{inputs.DEV_CONTAINER_ECR}}
452+ # IMAGE_TAG: ${{ inputs.DEV_CONTAINER_IMAGE_TAG }}
453+ # working-directory: .github/scripts
454+ # run: |
455+ # ./check_ecr_image_scan_results.sh
0 commit comments