Skip to content

Commit 1af3168

Browse files
committed
feat(docker-build): add context input to Docker build command
1 parent 47714b0 commit 1af3168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Build Docker Image as Tarball
8484
if: ${{ inputs.security-scan }}
8585
run: |
86-
docker build -t ${{ inputs.image-name }}:${{ inputs.image-tag }} -f ${{ inputs.dockerfile }} .
86+
docker build -t ${{ inputs.image-name }}:${{ inputs.image-tag }} -f ${{ inputs.dockerfile }} ${{ inputs.context }}
8787
docker save -o vuln-image.tar ${{ inputs.image-name }}:${{ inputs.image-tag }}
8888
8989
- name: Run Trivy vulnerability scanner

0 commit comments

Comments
 (0)