-
Notifications
You must be signed in to change notification settings - Fork 2
/
.woodpecker.yml
37 lines (34 loc) · 931 Bytes
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
variables:
- &plugin-kaniko 'ghcr.io/mindthecap/plugin-kaniko@sha256:e9b05649b4975f1adb634ca4089ac16bd6af336a160f9d2e11ecbfda08e3482e'
steps:
securitycheck:
group: build
when:
- branch: [master, dev]
image: ghcr.io/mindthecap/trivy-offline:latest
commands:
- trivy fs --skip-db-update --exit-code 1 --severity HIGH,CRITICAL .
- trivy fs --skip-db-update --exit-code 0 --severity MEDIUM .
go-test-step:
group: build
when:
- path: "src/backend/**"
image: *plugin-kaniko
settings:
dry_run: true
target: gotest
cache: "true"
build:
when:
- branch: [master]
image: *plugin-kaniko
settings:
repo: ${CI_REPO}
auto_tag: "true"
registry: ${REGISTRY}
cache: "true"
username:
from_secret: <woodpecker_username>
password:
from_secret: <woodpecker_secret>
mirror: ${DOCKERIO_MIRROR}