File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 7
7
description : " Docker image (e.g. docker.io/<org>/<repo>)"
8
8
type : string
9
9
required : true
10
+ file :
11
+ description : " Path to Dockerfile relative to the repository root"
12
+ type : string
13
+ default : " Dockerfile"
10
14
context :
11
15
description : " Docker build context"
12
16
type : string
60
64
uses : docker/build-push-action@v5
61
65
with :
62
66
context : ${{ inputs.context }}
67
+ file : ${{ inputs.file }}
63
68
push : ${{ inputs.push }}
64
69
tags : ${{ steps.meta.outputs.tags }}
65
70
cache-from : type=gha
Original file line number Diff line number Diff line change 18
18
secrets : inherit
19
19
with :
20
20
image : docker.io/${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.image }}
21
- context : ./${{ matrix.image }}
21
+ context : .
22
+ file : ./${{ matrix.image }}/Dockerfile
22
23
push : true
23
24
tag_with_version : false
Original file line number Diff line number Diff line change 55
55
uses : ./.github/workflows/docker-build.yml
56
56
with :
57
57
image : docker.io/${{ vars.DOCKERHUB_USERNAME }}/${{ matrix.image }}
58
- context : ./${{ matrix.image }}
58
+ context : .
59
+ file : ./${{ matrix.image }}/Dockerfile
59
60
push : true
60
61
tag_with_version : true
61
62
version : ${{ needs.version.outputs.version }}
You can’t perform that action at this time.
0 commit comments