ci: push base image al registry + parametrizza BASE_IMAGE nei service Dockerfile
Buildx con driver docker-container non vede image caricate nel daemon
locale. Soluzione: push base come git.tielogic.xyz/adriano/cerbero-mcp/
base:latest e i 6 service Dockerfile usano ${BASE_IMAGE}:${BASE_TAG}
con default "cerbero-base" per dev locale, override CI a path registry.
This commit is contained in:
+23
-9
@@ -126,13 +126,15 @@ jobs:
|
||||
id: meta
|
||||
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build base image (load to local daemon)
|
||||
- name: Build & push base image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: docker/base.Dockerfile
|
||||
tags: cerbero-base:latest
|
||||
load: true
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_PREFIX }}/base:latest
|
||||
${{ env.IMAGE_PREFIX }}/base:sha-${{ steps.meta.outputs.sha }}
|
||||
cache-from: type=registry,ref=${{ env.IMAGE_PREFIX }}/buildcache:base
|
||||
cache-to: type=registry,ref=${{ env.IMAGE_PREFIX }}/buildcache:base,mode=max
|
||||
|
||||
@@ -153,7 +155,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: docker/mcp-deribit.Dockerfile
|
||||
build-args: BASE_TAG=latest
|
||||
build-args: |
|
||||
BASE_IMAGE=git.tielogic.xyz/adriano/cerbero-mcp/base
|
||||
BASE_TAG=latest
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_PREFIX }}/mcp-deribit:latest
|
||||
@@ -166,7 +170,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: docker/mcp-bybit.Dockerfile
|
||||
build-args: BASE_TAG=latest
|
||||
build-args: |
|
||||
BASE_IMAGE=git.tielogic.xyz/adriano/cerbero-mcp/base
|
||||
BASE_TAG=latest
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_PREFIX }}/mcp-bybit:latest
|
||||
@@ -179,7 +185,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: docker/mcp-hyperliquid.Dockerfile
|
||||
build-args: BASE_TAG=latest
|
||||
build-args: |
|
||||
BASE_IMAGE=git.tielogic.xyz/adriano/cerbero-mcp/base
|
||||
BASE_TAG=latest
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_PREFIX }}/mcp-hyperliquid:latest
|
||||
@@ -192,7 +200,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: docker/mcp-alpaca.Dockerfile
|
||||
build-args: BASE_TAG=latest
|
||||
build-args: |
|
||||
BASE_IMAGE=git.tielogic.xyz/adriano/cerbero-mcp/base
|
||||
BASE_TAG=latest
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_PREFIX }}/mcp-alpaca:latest
|
||||
@@ -205,7 +215,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: docker/mcp-macro.Dockerfile
|
||||
build-args: BASE_TAG=latest
|
||||
build-args: |
|
||||
BASE_IMAGE=git.tielogic.xyz/adriano/cerbero-mcp/base
|
||||
BASE_TAG=latest
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_PREFIX }}/mcp-macro:latest
|
||||
@@ -218,7 +230,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: docker/mcp-sentiment.Dockerfile
|
||||
build-args: BASE_TAG=latest
|
||||
build-args: |
|
||||
BASE_IMAGE=git.tielogic.xyz/adriano/cerbero-mcp/base
|
||||
BASE_TAG=latest
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.IMAGE_PREFIX }}/mcp-sentiment:latest
|
||||
|
||||
Reference in New Issue
Block a user