File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 64
64
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
65
65
tags : |
66
66
type=raw,value=${{ github.head_ref || github.ref_name }}
67
+ type=raw,value=${{ github.sha}}
67
68
type=raw,value=commit-${{ github.sha }}-${{ github.head_ref || github.ref_name }}
68
69
type=raw,value=${{ steps.get_version.outputs.version }}-${{ github.head_ref || github.ref_name }}
69
70
86
87
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
87
88
tags : |
88
89
type=raw,value=prod
90
+ type=raw,value=${{ github.sha}}
89
91
type=raw,value=commit-${{ github.sha }}-prod
90
92
type=raw,value=${{ steps.get_version.outputs.version }}-prod
91
93
type=raw,value=latest
@@ -104,7 +106,7 @@ jobs:
104
106
- name : Scan Docker Image
105
107
uses : aquasecurity/trivy-action@master
106
108
with :
107
- image-ref : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.head_ref || github.ref_name }}'
109
+ image-ref : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}'
108
110
format : ' table'
109
111
ignore-unfixed : true
110
112
exit-code : 1
Original file line number Diff line number Diff line change 71
71
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
72
72
tags : |
73
73
type=raw,value=${{ github.head_ref || github.ref_name }}
74
+ type=raw,value=${{ github.sha}}
74
75
type=raw,value=commit-${{ github.sha }}-${{ github.head_ref || github.ref_name }}
75
76
type=raw,value=${{ steps.get_version.outputs.version }}-${{ github.head_ref || github.ref_name }}
76
77
93
94
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
94
95
tags : |
95
96
type=raw,value=prod
97
+ type=raw,value=${{ github.sha}}
96
98
type=raw,value=commit-${{ github.sha }}-prod
97
99
type=raw,value=${{ steps.get_version.outputs.version }}-prod
98
100
type=raw,value=latest
@@ -110,7 +112,7 @@ jobs:
110
112
- name : Scan Docker Image
111
113
uses : aquasecurity/trivy-action@master
112
114
with :
113
- image-ref : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.head_ref || github.ref_name }}'
115
+ image-ref : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}'
114
116
format : ' table'
115
117
ignore-unfixed : true
116
118
exit-code : 1
Original file line number Diff line number Diff line change 64
64
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
65
65
tags : |
66
66
type=raw,value=${{ github.head_ref || github.ref_name }}
67
+ type=raw,value=${{ github.sha}}
67
68
type=raw,value=commit-${{ github.sha }}-${{ github.head_ref || github.ref_name }}
68
69
type=raw,value=${{ steps.get_version.outputs.version }}-${{ github.head_ref || github.ref_name }}
69
70
86
87
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
87
88
tags : |
88
89
type=raw,value=prod
90
+ type=raw,value=${{ github.sha}}
89
91
type=raw,value=commit-${{ github.sha }}-prod
90
92
type=raw,value=${{ steps.get_version.outputs.version }}-prod
91
93
type=raw,value=latest
@@ -103,7 +105,7 @@ jobs:
103
105
- name : Scan Docker Image
104
106
uses : aquasecurity/trivy-action@master
105
107
with :
106
- image-ref : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.head_ref || github.ref_name }}'
108
+ image-ref : ' ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}'
107
109
format : ' table'
108
110
ignore-unfixed : true
109
111
exit-code : 1
You can’t perform that action at this time.
0 commit comments