Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME_APP: ${{ github.repository }}-app
IMAGE_NAME_WEB: ${{ github.repository }}-web

jobs:
build:
Expand All @@ -35,6 +33,10 @@ jobs:
fi
echo "value=$version" >> "$GITHUB_OUTPUT"

- name: Normalize repository name
id: repo_name
run: echo "value=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -54,7 +56,7 @@ jobs:
push: ${{ github.event_name == 'push' }}
build-args: |
NEXTCLOUD_VERSION=${{ steps.nextcloud_version.outputs.value }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_APP }}:latest
tags: ${{ env.REGISTRY }}/${{ steps.repo_name.outputs.value }}-app:latest
cache-from: type=gha
cache-to: type=gha,mode=max

Expand All @@ -64,6 +66,6 @@ jobs:
context: .docker/web
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'push' }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_WEB }}:latest
tags: ${{ env.REGISTRY }}/${{ steps.repo_name.outputs.value }}-web:latest
cache-from: type=gha
cache-to: type=gha,mode=max
Loading