Skip to content

Commit

Permalink
actions: enable arm64 images for operator
Browse files Browse the repository at this point in the history
Signed-off-by: Huo Qifeng <[email protected]>
  • Loading branch information
huoqifeng committed Dec 12, 2024
1 parent cd2cccb commit 522e0f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish-latest-on-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/s390x
platforms: linux/amd64,linux/s390x,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/s390x
platforms: linux/amd64,linux/s390x,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 5 additions & 0 deletions install/pre-install-payload/payload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ registry="${registry:-quay.io/confidential-containers/reqs-payload}"
supported_arches=(
"linux/amd64"
"linux/s390x"
"linux/arm64"
)

function setup_env_for_arch() {
Expand All @@ -29,6 +30,10 @@ function setup_env_for_arch() {
kernel_arch="s390x"
golang_arch="s390x"
;;
"linux/arm64")
kernel_arch="aarch64"
golang_arch="arm64"
;;
*) echo "$1 is not supported" >/dev/stderr && exit 1 ;;
esac
}
Expand Down

0 comments on commit 522e0f1

Please sign in to comment.