2022-09-13 13:24:46 +02:00
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
buildNext:
|
2022-12-07 20:26:35 +01:00
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2022-09-13 13:24:46 +02:00
|
|
|
settings:
|
|
|
|
repo: ocram85/blog
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
tags: next
|
|
|
|
username:
|
|
|
|
from_secret: hub_user
|
|
|
|
password:
|
|
|
|
from_secret: hub_passwd
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
|
|
|
|
buildNextGitea:
|
2022-12-07 20:26:35 +01:00
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2022-09-13 13:24:46 +02:00
|
|
|
settings:
|
|
|
|
registry: gitea.ocram85.com
|
|
|
|
repo: gitea.ocram85.com/ocram85/blog
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
tags: next
|
|
|
|
username:
|
|
|
|
from_secret: gitea_user
|
|
|
|
password:
|
|
|
|
from_secret: gitea_passwd
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
|
|
|
|
trivyNext:
|
2023-01-22 13:13:40 +01:00
|
|
|
image: aquasec/trivy:0.36.1
|
2022-09-13 13:24:46 +02:00
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
trivy image \
|
|
|
|
--severity UNKNOWN,LOW,MEDIUM \
|
|
|
|
--no-progress \
|
|
|
|
ocram85/blog:next
|
|
|
|
- |
|
|
|
|
trivy image \
|
|
|
|
--severity HIGH,CRITICAL \
|
|
|
|
--no-progress \
|
|
|
|
ocram85/blog:next
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
|
|
|
|
triggerPortainer:
|
|
|
|
image: ocram85/portainer-serviceupdate
|
|
|
|
settings:
|
|
|
|
#VERBOSE: true
|
|
|
|
URI: "https://portainer.ocram85.com"
|
|
|
|
TOKEN:
|
|
|
|
from_secret: NEXT_TOKEN
|
|
|
|
when:
|
|
|
|
event: pull_request
|