fix(ci): Repair broken docker build matrix (#1793)

* fix(ci): Typo in matrix.platforms ref

* fix(ci): Add platforms key to every entry in matrix
This commit is contained in:
bo0tzz 2023-02-18 20:15:23 +01:00 committed by GitHub
parent e309647f1b
commit 917f1dea9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,17 +16,19 @@ jobs:
# Prevent a failure in one image from stopping the other builds # Prevent a failure in one image from stopping the other builds
fail-fast: false fail-fast: false
matrix: matrix:
platforms: ["linux/arm/v7,linux/amd64,linux/arm64"]
include: include:
- context: "server" - context: "server"
image: "immich-server" image: "immich-server"
platforms: "linux/arm/v7,linux/amd64,linux/arm64"
- context: "web" - context: "web"
image: "immich-web" image: "immich-web"
platforms: "linux/arm/v7,linux/amd64,linux/arm64"
- context: "machine-learning" - context: "machine-learning"
image: "immich-machine-learning" image: "immich-machine-learning"
platforms: "linux/amd64" platforms: "linux/amd64"
- context: "nginx" - context: "nginx"
image: "immich-proxy" image: "immich-proxy"
platforms: "linux/arm/v7,linux/amd64,linux/arm64"
steps: steps:
- name: Checkout - name: Checkout
@ -94,7 +96,7 @@ jobs:
uses: docker/build-push-action@v4.0.0 uses: docker/build-push-action@v4.0.0
with: with:
context: ${{ matrix.context }} context: ${{ matrix.context }}
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platforms }}
# Skip pushing when PR from a fork # Skip pushing when PR from a fork
push: ${{ !github.event.pull_request.head.repo.fork }} push: ${{ !github.event.pull_request.head.repo.fork }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/immich-build-cache:${{matrix.image}} cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/immich-build-cache:${{matrix.image}}