|
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | podman: |
14 | | - runs-on: ubuntu-latest |
15 | | - name: Build the container with buildah |
| 14 | + strategy: |
| 15 | + fail-fast: false |
| 16 | + matrix: |
| 17 | + arch: ["x86_64", "arm64", "ppc64le", "s390x"] |
| 18 | + |
| 19 | + runs-on: ubuntu-22.04 |
| 20 | + name: Build the containers with buildah |
16 | 21 | steps: |
17 | 22 | - uses: actions/checkout@v3 |
18 | | - - run: buildah bud --layers . |
| 23 | + - name: update buildah |
| 24 | + run: | |
| 25 | + . /etc/os-release |
| 26 | + echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_$VERSION_ID/ /" | sudo tee /etc/apt/sources.list.d/openSUSE:Tools.list |
| 27 | + curl -fsSL https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_$VERSION_ID/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/libcontainers_unstable.gpg > /dev/null |
| 28 | + sudo apt update |
| 29 | + sudo apt install buildah |
| 30 | +
|
| 31 | + - name: Set up QEMU |
| 32 | + uses: docker/setup-qemu-action@v2 |
| 33 | + |
| 34 | + - run: buildah bud --platform linux/${{ matrix.arch }} --layers . |
19 | 35 |
|
20 | 36 | docker: |
21 | 37 | runs-on: ubuntu-latest |
22 | 38 | name: Build and publish the container with docker |
23 | 39 | steps: |
24 | 40 | - uses: actions/checkout@v3 |
25 | 41 |
|
| 42 | + - name: Set up QEMU |
| 43 | + uses: docker/setup-qemu-action@v2 |
| 44 | + |
| 45 | + - name: Set up Docker Buildx |
| 46 | + uses: docker/setup-buildx-action@v2 |
| 47 | + |
26 | 48 | - name: Login to GitHub Container Registry |
27 | 49 | uses: docker/login-action@v2 |
28 | 50 | with: |
|
34 | 56 | uses: docker/build-push-action@v3 |
35 | 57 | with: |
36 | 58 | context: . |
37 | | - platforms: linux/amd64 |
| 59 | + platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x |
38 | 60 | push: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/') }} |
39 | 61 | target: deploy |
40 | 62 | tags: | |
|
44 | 66 | uses: docker/build-push-action@v3 |
45 | 67 | with: |
46 | 68 | context: . |
47 | | - platforms: linux/amd64 |
| 69 | + platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x |
48 | 70 | push: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/') }} |
49 | 71 | target: storage-backend-deploy |
50 | 72 | tags: | |
|
0 commit comments