2023-07-17 19:32:05 +00:00
|
|
|
when:
|
2023-10-24 12:42:05 +00:00
|
|
|
- event: [pull_request, cron]
|
2023-07-17 19:32:05 +00:00
|
|
|
- event: push
|
2023-07-25 14:29:01 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-11-11 20:35:48 +00:00
|
|
|
- renovate/*
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
variables:
|
2024-11-03 00:01:30 +00:00
|
|
|
- &trivy_plugin docker.io/woodpeckerci/plugin-trivy:1.2.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
|
|
|
|
# settings:
|
|
|
|
# service: true
|
|
|
|
# db-repository: docker.io/aquasec/trivy-db:2
|
|
|
|
environment:
|
|
|
|
PLUGIN_SERVICE: 'true'
|
|
|
|
PLUGIN_DB_REPOSITORY: 'docker.io/aquasec/trivy-db:2'
|
|
|
|
ports:
|
|
|
|
- 10000
|