Skip to content

Commit

Permalink
fix(ci): Repair broken docker build matrix (immich-app#1793)
Browse files Browse the repository at this point in the history
* fix(ci): Typo in matrix.platforms ref

* fix(ci): Add platforms key to every entry in matrix
  • Loading branch information
bo0tzz authored Feb 18, 2023
1 parent e309647 commit 917f1de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ jobs:
# Prevent a failure in one image from stopping the other builds
fail-fast: false
matrix:
platforms: ["linux/arm/v7,linux/amd64,linux/arm64"]
include:
- context: "server"
image: "immich-server"
platforms: "linux/arm/v7,linux/amd64,linux/arm64"
- context: "web"
image: "immich-web"
platforms: "linux/arm/v7,linux/amd64,linux/arm64"
- context: "machine-learning"
image: "immich-machine-learning"
platforms: "linux/amd64"
- context: "nginx"
image: "immich-proxy"
platforms: "linux/arm/v7,linux/amd64,linux/arm64"

steps:
- name: Checkout
Expand Down Expand Up @@ -94,7 +96,7 @@ jobs:
uses: docker/[email protected]
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platform }}
platforms: ${{ matrix.platforms }}
# Skip pushing when PR from a fork
push: ${{ !github.event.pull_request.head.repo.fork }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/immich-build-cache:${{matrix.image}}
Expand Down

0 comments on commit 917f1de

Please sign in to comment.