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