feat(ci): configure image build caching

This commit is contained in:
Peter 2025-02-12 20:04:02 +01:00
parent 7f56a3db56
commit 264b30e8a2
Signed by: prskr
GPG key ID: F56BED6903BC5E37
6 changed files with 151 additions and 34 deletions
.github/workflows

View file

@ -1,6 +1,8 @@
name: Postgres image
on:
push:
paths:
- postgres/**
branches:
- main
tags:
@ -39,6 +41,8 @@ jobs:
build-args: |
POSTGRES_MAJOR=${{ matrix.postgres_major }}
POSTGRES_MINOR=${{ fromJSON(env.MINOR_VERSIONS)[matrix.postgres_major] }}
cache-from: type=registry,ref=code.icb4dc0.de/prskr/supabase-operator/postgres:buildcache
cache-to: type=registry,ref=code.icb4dc0.de/prskr/supabase-operator/postgres:buildcache,mode=max
manifest:
strategy: