File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ on: # yamllint disable-line rule:truthy
88 pull_request :
99 branches : ["main"]
1010
11+ env :
12+ IMAGE_NAME : algorithm-exercises-js
13+
1114jobs :
1215
1316 build :
2831 - name : Tag Docker image
2932 run : >
3033 docker tag
31- algorithm-exercises-js :latest
32- algorithm-exercises-js :${{ github.sha }}
34+ ${{ env.IMAGE_NAME }} :latest
35+ ${{ env.IMAGE_NAME }} :${{ github.sha }}
3336
3437 - name : Run Snyk to check Docker image for vulnerabilities
3538 # Snyk can be used to break the build when it detects vulnerabilities.
4447 # yamllint enable rule:line-length
4548 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
4649 with :
47- image : algorithm-exercises-js:latest
50+ image : ${{ env.IMAGE_NAME }}:${{ github.sha }}
4851 args : --file=Dockerfile
4952 # yamllint disable rule:comments-indentation
5053 # - name: Upload result to GitHub Code Scanning
You can’t perform that action at this time.
0 commit comments