We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea57e13 commit 9c840fbCopy full SHA for 9c840fb
1 file changed
.github/workflows/docker-publish.yml
@@ -20,6 +20,16 @@ on:
20
description: 'Determines if the resulting Docker image is pushed to Docker Hub'
21
required: true
22
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
31
+ default: './Dockerfile'
32
33
34
jobs:
35
build:
@@ -67,9 +77,9 @@ jobs:
67
77
name: Build and push Docker image
68
78
uses: docker/build-push-action@v6
69
79
with:
70
- context: .
80
+ context: ${{ inputs.context }}
71
81
# https://docs.docker.com/build/concepts/dockerfile/#filename
72
- file: ./Dockerfile
82
+ file: ${{ inputs.file }}
73
83
platforms: linux/amd64,linux/arm64
74
84
push: ${{ inputs.push }}
75
85
tags: ${{ steps.meta.outputs.tags }}
0 commit comments