Skip to content

Commit

Permalink
extract platform-wise
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jul 22, 2024
1 parent 3405014 commit 54fae4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
{ "ubuntu": "jammy", "label": "ubuntu2204" },
{ "ubuntu": "noble", "label": "ubuntu2404" },
]
PLATFORM: [ "linux/amd64", "linux/arm64" ]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -45,12 +44,13 @@ jobs:
build-args: |
BASE_IMAGE=ubuntu:${{ matrix.DISTRO.ubuntu }}
context: .
platforms: ${{ matrix.PLATFORM }}
platforms: linux/amd64,linux/arm64
push: false

- name: Extract deb
- name: Extract deb (AMD64)
run: |
docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=${{ matrix.PLATFORM }} iridescence:latest /bin/bash -c "cp /root/iridescence/build/*.deb /output/"
docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=linux/amd64 iridescence:latest /bin/bash -c "cp /root/iridescence/build/*.deb /output/"
docker run -v ${{github.workspace}}/${{ matrix.DISTRO.label }}:/output --platform=linux/arm64 iridescence:latest /bin/bash -c "cp /root/iridescence/build/*.deb /output/"
- name: Upload deb
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 54fae4b

Please sign in to comment.