Skip to content

Commit

Permalink
Add native support for arm64 container build (#13)
Browse files Browse the repository at this point in the history
* Update build_docker_image.yml

* Update build_docker_image.yml

* Update build_docker_image.yml

* Update build_docker_image.yml
  • Loading branch information
galachad authored Oct 26, 2023
1 parent 3657637 commit 7f1bc0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/<user name>?tab=packages to go to packages settings) and there https://github.com/users/<user name>/packages/container/admiralci-4.0/settings

0 comments on commit 7f1bc0a

Please sign in to comment.