force redeploy without devsecops
This commit is contained in:
@@ -22,26 +22,26 @@ jobs:
|
|||||||
path: niayesh-hospital.tar
|
path: niayesh-hospital.tar
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
# ---------- SCAN ----------
|
# ---------- SCAN ----------
|
||||||
scan:
|
# scan:
|
||||||
needs: build
|
# needs: build
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout code
|
# - name: Checkout code
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
# IMPORTANT: use v3 on Gitea
|
# # IMPORTANT: use v3 on Gitea
|
||||||
- name: Download image artifact
|
# - name: Download image artifact
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: app-image
|
# name: app-image
|
||||||
path: . # place niayesh-hospital.tar in the workspace root
|
# path: . # place niayesh-hospital.tar in the workspace root
|
||||||
- name: Load Docker image from artifact
|
# - name: Load Docker image from artifact
|
||||||
run: docker load -i niayesh-hospital.tar
|
# run: docker load -i niayesh-hospital.tar
|
||||||
- name: Scan image with Trivy
|
# - name: Scan image with Trivy
|
||||||
run: |
|
# run: |
|
||||||
docker run --rm \
|
# docker run --rm \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
# -v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
aquasec/trivy:latest \
|
# aquasec/trivy:latest \
|
||||||
image --exit-code 1 --severity CRITICAL,HIGH --no-progress niayesh-hospital:latest
|
# image --exit-code 1 --severity CRITICAL,HIGH --no-progress niayesh-hospital:latest
|
||||||
# ---------- DEPLOY ----------
|
# ---------- DEPLOY ----------
|
||||||
deploy:
|
deploy:
|
||||||
needs: [build, scan]
|
needs: [build, scan]
|
||||||
|
|||||||
Reference in New Issue
Block a user