build(server): use github-action cache (#949)

* build(server): prune dependencies in docker builder

* fix: e2e tests

* refactor: dockerfile step order

* fix: vips build dependency

* feat: use caching
This commit is contained in:
Jason Rasmussen
2022-11-09 20:53:21 -05:00
committed by GitHub
parent b457bfbd4e
commit cc61729f01
6 changed files with 41 additions and 34 deletions

View File

@@ -33,6 +33,8 @@ jobs:
file: ./server/Dockerfile
platforms: linux/arm/v7,linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
altran1502/immich-server:latest
@@ -61,6 +63,8 @@ jobs:
file: ./machine-learning/Dockerfile
platforms: linux/arm/v7,linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
altran1502/immich-machine-learning:latest