Skip to content

Commit fd44a8c

Browse files
rahul2393simar7
andauthored
Improve Readme to remove docker build step (#43)
* Remove docker build step * Update README.md Co-authored-by: Simar <[email protected]>
1 parent 341f810 commit fd44a8c

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

README.md

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ jobs:
107107
- name: Checkout code
108108
uses: actions/checkout@v2
109109

110-
- name: Build an image from Dockerfile
111-
run: |
112-
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
113-
114110
- name: Run Trivy vulnerability scanner in repo mode
115111
uses: aquasecurity/trivy-action@master
116112
with:
@@ -147,11 +143,7 @@ jobs:
147143
steps:
148144
- name: Checkout code
149145
uses: actions/checkout@v2
150-
151-
- name: Build an image from Dockerfile
152-
run: |
153-
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
154-
146+
155147
- name: Run Trivy vulnerability scanner
156148
uses: aquasecurity/trivy-action@master
157149
with:
@@ -188,15 +180,11 @@ jobs:
188180
steps:
189181
- name: Checkout code
190182
uses: actions/checkout@v2
191-
192-
- name: Build an image from Dockerfile
193-
run: |
194-
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
195-
183+
196184
- name: Run Trivy vulnerability scanner
197185
uses: aquasecurity/trivy-action@master
198186
with:
199-
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
187+
image-ref: 'aws_account_id.dkr.ecr.region.amazonaws.com/imageName:${{ github.sha }}'
200188
format: 'template'
201189
template: '@/contrib/sarif.tpl'
202190
output: 'trivy-results.sarif'
@@ -229,11 +217,7 @@ jobs:
229217
steps:
230218
- name: Checkout code
231219
uses: actions/checkout@v2
232-
233-
- name: Build an image from Dockerfile
234-
run: |
235-
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
236-
220+
237221
- name: Run Trivy vulnerability scanner
238222
uses: aquasecurity/trivy-action@master
239223
with:
@@ -267,11 +251,7 @@ jobs:
267251
steps:
268252
- name: Checkout code
269253
uses: actions/checkout@v2
270-
271-
- name: Build an image from Dockerfile
272-
run: |
273-
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
274-
254+
275255
- name: Run Trivy vulnerability scanner
276256
uses: aquasecurity/trivy-action@master
277257
with:

0 commit comments

Comments
 (0)