Blog/.woodpecker/.next.yml

51 lines
1.0 KiB
YAML
Raw Normal View History

depends_on:
- test
pipeline:
buildNext:
2022-08-11 14:35:33 +02:00
image: plugins/docker
settings:
2022-08-12 10:59:00 +02:00
#dry_run: true
repo: ocram85/blog
dockerfile: Dockerfile
2022-08-11 14:30:15 +02:00
tags: next
build_args:
- NODE_BASE=lts-buster-slim
2022-08-11 14:39:29 +02:00
- NGINX_BASE=1.23.1-alpine
username:
from_secret: hub_user
password:
from_secret: hub_passwd
when:
2022-08-11 14:30:15 +02:00
event: pull_request
trivy:
image: aquasec/trivy:0.24.3
commands:
- |
trivy image \
--severity UNKNOWN,LOW,MEDIUM \
--no-progress \
ocram85/blog:next
- |
trivy image \
--exit-code 1 \
--severity HIGH,CRITICAL \
--no-progress \
ocram85/blog:next
when:
2022-08-11 14:30:15 +02:00
event: pull_request
2022-08-12 10:59:00 +02:00
branch:
exclude:
- master
triggerPortainer:
image: ocram85/portainer-serviceupdate
settings:
#VERBOSE: true
URI: "https://portainer.ocram85.com"
TOKEN:
from_secret: NEXT_TOKEN
when:
2022-08-11 14:30:15 +02:00
event: pull_request