2023-07-17 19:32:05 +00:00
|
|
|
when:
|
2024-12-08 21:12:58 +00:00
|
|
|
- event: [pull_request]
|
2023-07-17 19:32:05 +00:00
|
|
|
- event: push
|
2023-07-25 14:29:01 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
variables:
|
2024-11-22 08:24:08 +00:00
|
|
|
- &trivy_plugin docker.io/woodpeckerci/plugin-trivy:1.3.0
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
steps:
|
2024-01-10 14:10:56 +00:00
|
|
|
backend:
|
2023-12-28 15:39:14 +00:00
|
|
|
depends_on: []
|
2023-07-17 19:32:05 +00:00
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
2024-11-05 13:26:27 +00:00
|
|
|
server: server
|
2023-07-17 19:32:05 +00:00
|
|
|
skip-dirs: web/,docs/
|
|
|
|
|
2024-01-10 14:10:56 +00:00
|
|
|
docs:
|
2023-12-28 15:39:14 +00:00
|
|
|
depends_on: []
|
2023-07-17 19:32:05 +00:00
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
2024-11-05 13:26:27 +00:00
|
|
|
server: server
|
2023-07-17 19:32:05 +00:00
|
|
|
skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/
|
2023-10-24 12:42:05 +00:00
|
|
|
dir: docs/
|
2023-07-17 19:32:05 +00:00
|
|
|
|
2024-01-10 14:10:56 +00:00
|
|
|
web:
|
2023-12-28 15:39:14 +00:00
|
|
|
depends_on: []
|
2023-07-17 19:32:05 +00:00
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
2024-11-05 13:26:27 +00:00
|
|
|
server: server
|
2023-07-17 19:32:05 +00:00
|
|
|
skip-dirs: node_modules/
|
2023-10-24 12:42:05 +00:00
|
|
|
dir: web/
|
2024-11-05 13:26:27 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: *trivy_plugin
|
2024-11-10 06:01:02 +00:00
|
|
|
settings:
|
|
|
|
service: true
|
|
|
|
db-repository: docker.io/aquasec/trivy-db:2
|
2024-11-05 13:26:27 +00:00
|
|
|
ports:
|
|
|
|
- 10000
|