Skip to content

Commit 61fa254

Browse files
committed
try cross compile again
1 parent accee98 commit 61fa254

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/quality-checks.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,49 @@ jobs:
367367
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
368368
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
369369

370+
build_dev_container_cross_compile:
371+
runs-on: ubuntu-22.04
372+
steps:
373+
- name: Checkout code
374+
uses: actions/checkout@v5
375+
with:
376+
ref: ${{ env.BRANCH_NAME }}
377+
fetch-depth: 0
378+
379+
- name: Build dev container
380+
run: |
381+
docker buildx create --use
382+
docker buildx build --platform linux/amd64,linux/arm64 -f .devcontainer/Dockerfile -t dev-container-image .
383+
# - name: Configure AWS Credentials
384+
# uses: aws-actions/configure-aws-credentials@v5
385+
# id: connect-aws-deploy
386+
# with:
387+
# aws-region: eu-west-2
388+
# role-to-assume: ${{ secrets.CLOUD_FORMATION_DEPLOY_ROLE }}
389+
# role-session-name: dev-container-build
390+
# output-credentials: true
391+
392+
# - name: Retrieve AWS Account ID
393+
# id: retrieve-deploy-account-id
394+
# run: echo "ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)" >> "$GITHUB_ENV"
395+
396+
# - name: Login to Amazon ECR
397+
# id: login-ecr-push-image
398+
# run: |
399+
# 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
400+
401+
# - name: Push FHIR Facade image to Amazon ECR
402+
# run: |
403+
# docker tag "dev-container-image" "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/${{inputs.DEV_CONTAINER_ECR}}:${{ inputs.DEV_CONTAINER_IMAGE_TAG }}"
404+
# docker push "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/${{inputs.DEV_CONTAINER_ECR}}:${{ inputs.DEV_CONTAINER_IMAGE_TAG }}"
405+
406+
# - name: Check dev container scan results
407+
# env:
408+
# REPOSITORY_NAME: ${{inputs.DEV_CONTAINER_ECR}}
409+
# IMAGE_TAG: ${{ inputs.DEV_CONTAINER_IMAGE_TAG }}
410+
# working-directory: .github/scripts
411+
# run: |
412+
# ./check_ecr_image_scan_results.sh
370413
build_dev_container_x64:
371414
runs-on: ubuntu-22.04
372415
steps:

0 commit comments

Comments
 (0)