File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 2020 description : ' Determines if the resulting Docker image is pushed to Docker Hub'
2121 required : true
2222 type : boolean
23+ context :
24+ description : ' Docker build context'
25+ required : false
26+ default : ' .'
27+ type : string
28+ file :
29+ description : ' Path to Dockerfile, e.g. "./Dockerfile"'
30+ required : false
31+ default : ' ./Dockerfile'
32+ type : string
2333
2434jobs :
2535 build :
6777 name : Build and push Docker image
6878 uses : docker/build-push-action@v6
6979 with :
70- context : .
80+ context : ${{ inputs.context }}
7181 # https://docs.docker.com/build/concepts/dockerfile/#filename
72- file : ./Dockerfile
82+ file : ${{ inputs.file }}
7383 platforms : linux/amd64,linux/arm64
7484 push : ${{ inputs.push }}
7585 tags : ${{ steps.meta.outputs.tags }}
You can’t perform that action at this time.
0 commit comments