Skip to content

Commit d381da3

Browse files
committed
fix(translations): Only build amd64 images for now
Signed-off-by: Joas Schilling <[email protected]>
1 parent c3f038b commit d381da3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ jobs:
6666

6767
# Only build non-client containers as multi-arch containers
6868
- name: Build multi-arch Docker image ${{ matrix.dockerfile }}
69-
if: ${{ !startsWith(matrix.dockerfile, 'client') }}
69+
if: ${{ !startsWith(matrix.dockerfile, 'client') && !startsWith(github.event.inputs.folderPath, 'translations') }}
7070
run: |
7171
cd "$(dirname ${{ matrix.dockerfile }})"
7272
docker buildx build --platform linux/amd64,linux/arm64 . --file Dockerfile
7373
7474
- name: Build amd64 Docker image ${{ matrix.dockerfile }}
75-
if: ${{ startsWith(matrix.dockerfile, 'client') }}
75+
if: ${{ startsWith(matrix.dockerfile, 'client') || startsWith(github.event.inputs.folderPath, 'translations') }}
7676
run: |
7777
cd "$(dirname ${{ matrix.dockerfile }})"
7878
docker build . --file Dockerfile

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Build container image
6969
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
7070
with:
71-
platforms: ${{ startsWith(github.event.inputs.folderPath, 'client') && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
71+
platforms: ${{ (startsWith(github.event.inputs.folderPath, 'client') || startsWith(github.event.inputs.folderPath, 'translations')) && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
7272
push: true
7373
context: ${{ github.event.inputs.folderPath }}
7474
file: '${{ github.event.inputs.folderPath }}/${{ github.event.inputs.dockerFile }}'

0 commit comments

Comments
 (0)