Skip to content

Commit 9e049c1

Browse files
committed
build: Allow setting a custom Dockerfile path
Signed-off-by: Felicitas Pojtinger <[email protected]>
1 parent 04970fc commit 9e049c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ jobs:
1818
target:
1919
- id: weron-linux-amd64
2020
src: .
21+
file: Dockerfile
2122
image: ghcr.io/pojntfx/weron
2223
arch: "linux/amd64,linux/arm/v7,linux/386,linux/s390x" # linux/mips64le,linux/ppc64le,linux/arm/v5
2324
runner: ubuntu-latest
2425
- id: weron-linux-arm64-v8
2526
src: .
27+
file: Dockerfile
2628
image: ghcr.io/pojntfx/weron
2729
arch: "linux/arm64/v8"
2830
runner: ubicloud-standard-4-arm
@@ -50,7 +52,7 @@ jobs:
5052
uses: docker/build-push-action@v5
5153
with:
5254
context: ${{ matrix.target.src }}
53-
file: ${{ matrix.target.src }}/Dockerfile
55+
file: ${{ matrix.target.src }}/${{ matrix.target.file }}
5456
platforms: ${{ matrix.target.arch }}
5557
labels: ${{ steps.meta.outputs.labels }}
5658
outputs: type=image,name=${{ matrix.target.image }},push-by-digest=true,name-canonical=true,push=true
@@ -116,3 +118,4 @@ jobs:
116118
working-directory: /tmp/digests
117119
run: |
118120
docker buildx imagetools create --tag "${{ steps.meta.outputs.tags }}"" $(printf '${{ matrix.target.image }}@sha256:%s ' *)
121+

0 commit comments

Comments
 (0)