Blog/.woodpecker/.next.yml

48 lines
987 B
YAML
Raw Normal View History

depends_on:
- test
pipeline:
buildNext:
2022-08-11 14:35:33 +02:00
image: plugins/docker
settings:
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
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