File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 required : false
1717 type : boolean
1818 default : false
19+ DOCKER_PUSH_BOOL :
20+ required : false
21+ type : boolean
22+ default : false
1923
2024jobs :
2125 build-and-scan :
3842 context : ${{ inputs.DOCKER_PATH_CONTEXT }}
3943 file : ${{ inputs.DOCKER_BUILD_DOCKERFILE}}
4044 load : ${{ inputs.DOCKER_LOAD_BOOL }}
41- push : ${{ github.event_name == 'workflow_call' }}
45+ push : ${{ inputs.DOCKER_PUSH_BOOL }}
4246 tags : ${{ inputs.DOCKER_TAGS }}
4347 - name : Run Trivy vulnerability scanner (remote)
4448 uses : aquasecurity/trivy-action@0.33.1
Original file line number Diff line number Diff line change 66 - main
77jobs :
88 docker-build-and-scan :
9- uses : milsman2/python-app-template/ .github/workflows/docker-build-and-scan.yaml@main
9+ uses : ./ .github/workflows/docker-build-and-scan.yaml
1010 secrets : inherit
1111 with :
1212 DOCKER_PATH_CONTEXT : .
1313 DOCKER_BUILD_DOCKERFILE : Dockerfile
1414 DOCKER_LOAD_BOOL : true
1515 DOCKER_TAGS : sample-python-app:${{ github.sha }}
16+ DOCKER_PUSH_BOOL : false
You can’t perform that action at this time.
0 commit comments