We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c1c59e + 81f91f3 commit 0a45c2dCopy full SHA for 0a45c2d
.github/workflows/container-linux.yml
@@ -28,14 +28,21 @@ jobs:
28
name: Build
29
runs-on: ubuntu-24.04
30
steps:
31
+ - name: Install dependencies
32
+ run: |
33
+ sudo apt-get update
34
+ sudo apt-get -y install qemu-user-static
35
- name: Check out repository
36
uses: actions/checkout@v4
37
- name: Build container
38
+ # Cross-build the arm64 container from amd64 for simplicity
39
run: |
- podman build -t $CONTAINER_IMAGE builder/linux
40
+ podman build --manifest $CONTAINER_IMAGE \
41
+ --platform "linux/amd64,linux/arm64" \
42
+ builder/linux
43
- name: Push container
44
if: github.event_name != 'pull_request'
45
46
echo "${{ secrets.GITHUB_TOKEN }}" |
47
podman login ghcr.io -u $ --password-stdin
- podman push $CONTAINER_IMAGE
48
+ podman manifest push $CONTAINER_IMAGE
0 commit comments