Blog/.woodpecker/.next.yml

66 lines
1.4 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
2022-09-13 12:59:11 +02:00
buildNextGitea:
image: plugins/docker
settings:
#dry_run: true
registry: gitea.ocram85.com
2022-09-13 13:02:31 +02:00
repo: ocram85/blog
2022-09-13 12:59:11 +02:00
dockerfile: Dockerfile
tags: next
build_args:
- NODE_BASE=lts-buster-slim
- NGINX_BASE=1.23.1-alpine
username:
from_secret: gitea_user
password:
from_secret: gitea_passwd
when:
event: pull_request
2022-08-12 11:17:22 +02:00
trivyNext:
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