From 7f1bc0a846376a4e3cd03a325e065b278b736da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Fory=C5=9B?= Date: Thu, 26 Oct 2023 18:59:20 +0200 Subject: [PATCH] Add native support for arm64 container build (#13) * Update build_docker_image.yml * Update build_docker_image.yml * Update build_docker_image.yml * Update build_docker_image.yml --- .github/workflows/build_docker_image.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index 7df17ec5..9a7ed2f8 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -81,6 +81,12 @@ jobs: echo "image_name=$package_name-$r_version" >> $GITHUB_OUTPUT renv=$(echo "${{ matrix.value }}" | tr -d '"') echo "renv_lock_path=$renv" >> $GITHUB_OUTPUT + if [ "$r_version" = "4.3" ]; then + echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT + else + echo "platforms=linux/amd64" >> $GITHUB_OUTPUT + fi + - name: Call deploy docker image action for every renv uses: insightsengineering/r-image-creator@v1 @@ -93,6 +99,7 @@ jobs: repository-owner: ${{ github.repository_owner }} repo-user: ${{ github.actor }} repo-token: "${{ secrets.GITHUB_TOKEN }}" + platforms: "${{ steps.image_specs.outputs.platforms }}" # note: in case of 403 error when pushing to ghcr : link current repo to the given package registry - https://github.com/docker/build-push-action/issues/687 # (got to https://github.com/?tab=packages to go to packages settings) and there https://github.com/users//packages/container/admiralci-4.0/settings