chore: Update Docker image tags to include repository owner in CI workflow
Some checks failed
Integration Tests / integration-tests (push) Failing after 26s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 12m9s

### Summary of Changes
- Added a new environment variable `REPO_OWNER` to specify the repository owner in the Docker build workflow.
- Updated image tags in the CI workflow to use `REPO_OWNER` instead of the previous `IMAGE_PREFIX`, ensuring correct tagging for Docker images.

### Expected Results
- Improved clarity and accuracy in Docker image tagging, facilitating better organization and management of images in the registry.
This commit is contained in:
GSRN
2025-09-17 01:26:20 +02:00
parent 84d1660000
commit 196ad02795

View File

@@ -10,6 +10,7 @@ on:
env: env:
REGISTRY: gittea.kammenstraatha.duckdns.org REGISTRY: gittea.kammenstraatha.duckdns.org
REGISTRY_URL: https://gittea.kammenstraatha.duckdns.org REGISTRY_URL: https://gittea.kammenstraatha.duckdns.org
REPO_OWNER: admin
IMAGE_PREFIX: labfusion IMAGE_PREFIX: labfusion
jobs: jobs:
@@ -35,10 +36,10 @@ jobs:
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: | images: |
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/api-gateway ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-gateway
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/service-adapters ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/service-adapters
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/api-docs ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-docs
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/frontend ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/frontend
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr
@@ -54,7 +55,7 @@ jobs:
context: ./services/api-gateway context: ./services/api-gateway
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/api-gateway:${{ steps.meta.outputs.version }} tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-gateway:${{ steps.meta.outputs.version }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=api-gateway cache-from: type=gha,scope=api-gateway
cache-to: type=gha,mode=max,scope=api-gateway cache-to: type=gha,mode=max,scope=api-gateway
@@ -65,7 +66,7 @@ jobs:
context: ./services/service-adapters context: ./services/service-adapters
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/service-adapters:${{ steps.meta.outputs.version }} tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/service-adapters:${{ steps.meta.outputs.version }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=service-adapters cache-from: type=gha,scope=service-adapters
cache-to: type=gha,mode=max,scope=service-adapters cache-to: type=gha,mode=max,scope=service-adapters
@@ -76,7 +77,7 @@ jobs:
context: ./services/api-docs context: ./services/api-docs
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/api-docs:${{ steps.meta.outputs.version }} tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-docs:${{ steps.meta.outputs.version }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=api-docs cache-from: type=gha,scope=api-docs
cache-to: type=gha,mode=max,scope=api-docs cache-to: type=gha,mode=max,scope=api-docs
@@ -87,7 +88,7 @@ jobs:
context: ./frontend context: ./frontend
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/frontend:${{ steps.meta.outputs.version }} tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/frontend:${{ steps.meta.outputs.version }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=frontend cache-from: type=gha,scope=frontend
cache-to: type=gha,mode=max,scope=frontend cache-to: type=gha,mode=max,scope=frontend