Skip to content

Commit

Permalink
workflow: add arm64 container build
Browse files Browse the repository at this point in the history
The github workflow infrastructure doesn't offer arm64 nodes but we
can use qemu-user-static [1] to build arm64 container image on x86_64
host.

[1] https://github.com/multiarch/qemu-user-static

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit f456123)
  • Loading branch information
dsavineau committed Mar 26, 2021
1 parent a9b01b2 commit e3da3d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: container
on: [pull_request]
jobs:
build:
x86_64:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down Expand Up @@ -29,3 +29,14 @@ jobs:
docker ps -a
docker logs ceph-demo
docker exec ceph-demo ceph --cluster test -s
arm64:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: setup qemu-static-user
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

- name: build the ceph container arm64 image
run: make RELEASE="demo" BASEOS_REPO=arm64v8/centos DAEMON_BASE_TAG="daemon-base:demo-centos-8-aarch64" DAEMON_TAG="daemon:demo-centos-8-aarch64" FLAVORS="pacific,centos-arm64,8" build

0 comments on commit e3da3d4

Please sign in to comment.