|
9 | 9 | push_to_registry: |
10 | 10 | name: Push Docker image to Docker Hub |
11 | 11 |
|
12 | | - runs-on: ubuntu-22.04 |
| 12 | + runs-on: ${{ matrix.config.runs_on }} |
13 | 13 | env: |
14 | 14 | COMMIT_SHA: ${{ github.sha }} |
15 | 15 | strategy: |
16 | 16 | fail-fast: false |
17 | 17 | matrix: |
18 | 18 | config: |
19 | | - - { tag: "main", dockerfile: ".devops/main.Dockerfile", platform: "linux/amd64" } |
20 | | - - { tag: "main-musa", dockerfile: ".devops/main-musa.Dockerfile", platform: "linux/amd64" } |
21 | | - - { tag: "main-intel", dockerfile: ".devops/main-intel.Dockerfile", platform: "linux/amd64" } |
22 | | - - { tag: "main-cuda", dockerfile: ".devops/main-cuda.Dockerfile", platform: "linux/amd64" } |
23 | | - - { tag: "main-vulkan", dockerfile: ".devops/main-vulkan.Dockerfile", platform: "linux/amd64" } |
| 19 | + - { tag: "main", dockerfile: ".devops/main.Dockerfile", platform: "linux/amd64", runs_on: "ubuntu-24.04" } |
| 20 | + - { tag: "main-arm64", dockerfile: ".devops/main.Dockerfile", platform: "linux/arm64", runs_on: "ubuntu-24.04-arm" } |
| 21 | + - { tag: "main-musa", dockerfile: ".devops/main-musa.Dockerfile", platform: "linux/amd64", runs_on: "ubuntu-24.04" } |
| 22 | + - { tag: "main-intel", dockerfile: ".devops/main-intel.Dockerfile", platform: "linux/amd64", runs_on: "ubuntu-24.04" } |
| 23 | + - { tag: "main-cuda", dockerfile: ".devops/main-cuda.Dockerfile", platform: "linux/amd64", runs_on: "ubuntu-24.04" } |
| 24 | + - { tag: "main-vulkan", dockerfile: ".devops/main-vulkan.Dockerfile", platform: "linux/amd64", runs_on: "ubuntu-24.04" } |
| 25 | + - { tag: "main-vulkan-arm64", dockerfile: ".devops/main-vulkan.Dockerfile", platform: "linux/arm64", runs_on: "ubuntu-24.04-arm" } |
24 | 26 |
|
25 | 27 | steps: |
26 | 28 | - name: Check out the repo |
27 | 29 | uses: actions/checkout@v6 |
28 | 30 |
|
29 | | - - name: Set up QEMU |
30 | | - uses: docker/setup-qemu-action@v3 |
31 | | - with: |
32 | | - image: tonistiigi/binfmt:qemu-v7.0.0-28 |
33 | | - |
34 | 31 | - name: Set up Docker Buildx |
35 | 32 | uses: docker/setup-buildx-action@v3 |
36 | 33 |
|
|
69 | 66 | uses: docker/build-push-action@v6 |
70 | 67 | with: |
71 | 68 | context: . |
72 | | - push: ${{ github.event_name == 'push' }} |
| 69 | + #push: ${{ github.event_name == 'push' }} |
| 70 | + push: false # just for testing this on my fork |
73 | 71 | platforms: ${{ matrix.config.platform }} |
74 | 72 | tags: ${{ steps.tags.outputs.tags }} |
75 | 73 | file: ${{ matrix.config.dockerfile }} |
0 commit comments