Optimize workflow: reintroduce metadata extraction, adjust Docker image build steps, and enable ARM64 focus with caching placeholders
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, gateway, api-gateway) (push) Successful in 9m15s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 9m7s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Failing after 29m20s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m58s
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, gateway, api-gateway) (push) Successful in 9m15s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 9m7s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Failing after 29m20s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m58s
This commit is contained in:
@@ -93,44 +93,47 @@ jobs:
|
|||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
# Metadaten extrahieren (Tags, Labels)
|
# - name: Build and push Docker image
|
||||||
# - name: Extract metadata
|
# uses: docker/build-push-action@v6
|
||||||
# id: meta
|
# with:
|
||||||
# uses: docker/metadata-action@v5
|
# context: .
|
||||||
# with:
|
# file: ${{ matrix.dockerfile }}
|
||||||
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.image }}
|
# push: true
|
||||||
# tags: |
|
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.name }}:latest
|
||||||
# type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
# build-args: |
|
||||||
# type=sha,format=long
|
# DOCKER_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||||
# # Build und Push (Nativ ARM64 für maximale Geschwindigkeit)
|
# VERSION=${{ github.sha }}
|
||||||
# - name: Build and push Docker image
|
# GRADLE_VERSION=${{ env.GRADLE_VERSION }}
|
||||||
# uses: docker/build-push-action@v6
|
# JAVA_VERSION=${{ env.JAVA_VERSION }}
|
||||||
# with:
|
# JVM_OPTS_APPEND=${{ env.JVM_OPTS_ARM64 }}
|
||||||
# context: ${{ matrix.context }}
|
|
||||||
# file: ${{ matrix.dockerfile }}
|
- name: Extract metadata
|
||||||
# push: true
|
id: meta
|
||||||
# # Fokus auf ARM64 für Zora, AMD64 bleibt für Kompatibilität (optional)
|
uses: docker/metadata-action@v5
|
||||||
# platforms: linux/arm64
|
with:
|
||||||
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.name }}:latest
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.image }}
|
||||||
# labels: ${{ steps.meta.outputs.labels }}
|
tags: |
|
||||||
# build-args: |
|
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
||||||
# DOCKER_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
type=sha,format=long
|
||||||
# VERSION=${{ github.sha }}
|
|
||||||
# GRADLE_VERSION=${{ env.GRADLE_VERSION }}
|
|
||||||
# JAVA_VERSION=${{ env.JAVA_VERSION }}
|
|
||||||
# KEYCLOAK_IMAGE_TAG=26.4
|
|
||||||
# JVM_OPTS_APPEND=${{ env.JVM_OPTS_ARM64 }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ${{ matrix.context }}
|
||||||
file: ${{ matrix.dockerfile }}
|
file: ${{ matrix.dockerfile }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/${{ matrix.name }}:latest
|
# Fokus auf ARM64 für Zora, AMD64 bleibt für Kompatibilität (optional)
|
||||||
|
platforms: linux/arm64
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
DOCKER_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
DOCKER_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||||
VERSION=${{ github.sha }}
|
VERSION=${{ github.sha }}
|
||||||
GRADLE_VERSION=${{ env.GRADLE_VERSION }}
|
GRADLE_VERSION=${{ env.GRADLE_VERSION }}
|
||||||
JAVA_VERSION=${{ env.JAVA_VERSION }}
|
JAVA_VERSION=${{ env.JAVA_VERSION }}
|
||||||
|
KEYCLOAK_IMAGE_TAG=26.4
|
||||||
JVM_OPTS_APPEND=${{ env.JVM_OPTS_ARM64 }}
|
JVM_OPTS_APPEND=${{ env.JVM_OPTS_ARM64 }}
|
||||||
|
# cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
|
# cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||||
|
# cache-from: type=gha
|
||||||
|
# cache-to: type=gha,mode=max
|
||||||
|
|||||||
Reference in New Issue
Block a user