force redeploy without devsecops
Some checks failed
Build and Deploy Angular App HIS / deploy (push) Failing after 1m57s
Build and Deploy Angular App HIS / build (push) Successful in 44s

This commit is contained in:
m.imanpour
2025-12-10 01:11:01 +03:30
parent ed3d6d06d6
commit ccb0673f84

View File

@@ -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]