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