File tree 1 file changed +6
-3
lines changed
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
8
8
pull_request :
9
9
branches : ["main"]
10
10
11
+ env :
12
+ IMAGE_NAME : algorithm-exercises-ts
13
+
11
14
jobs :
12
15
13
16
build :
28
31
- name : Tag Docker image
29
32
run : >
30
33
docker tag
31
- algorithm-exercises-js :latest
32
- algorithm-exercises-js :${{ github.sha }}
34
+ ${{ env.IMAGE_NAME }} :latest
35
+ ${{ env.IMAGE_NAME }} :${{ github.sha }}
33
36
34
37
- name : Run Snyk to check Docker image for vulnerabilities
35
38
# Snyk can be used to break the build when it detects vulnerabilities.
44
47
# yamllint enable rule:line-length
45
48
SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
46
49
with :
47
- image : algorithm-exercises-js:latest
50
+ image : ${{ env.IMAGE_NAME }}:${{ github.sha }}
48
51
args : --file=Dockerfile
49
52
# yamllint disable rule:comments-indentation
50
53
# - name: Upload result to GitHub Code Scanning
You can’t perform that action at this time.
0 commit comments