Skip to content

Commit 437d87a

Browse files
committed
added docker push
1 parent 78e7525 commit 437d87a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/M1-4-2-CI-Practice.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
uses: docker/build-push-action@v6
140140
with:
141141
context: .
142-
push: true
142+
push: false
143143
tags: ${{ secrets.DOCKERHUB_USERNAME }}/flaskapp:${{ github.sha }}
144144

145145
- name: Trivy scan
@@ -151,5 +151,9 @@ jobs:
151151
vuln-type: "os,library"
152152
severity: 'CRITICAL,HIGH'
153153

154+
- name: Push docker image
155+
if: ${{ success() }}
156+
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/flaskapp:${{ github.sha }}
157+
154158

155159

0 commit comments

Comments
 (0)