2022-08-11 14:16:10 +02:00
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
buildNext:
|
2022-08-11 14:35:33 +02:00
|
|
|
image: plugins/docker
|
2022-08-11 14:16:10 +02:00
|
|
|
settings:
|
2022-08-12 10:59:00 +02:00
|
|
|
#dry_run: true
|
2022-08-11 14:16:10 +02:00
|
|
|
repo: ocram85/blog
|
|
|
|
dockerfile: Dockerfile
|
2022-08-11 14:30:15 +02:00
|
|
|
tags: next
|
2022-08-11 14:16:10 +02:00
|
|
|
build_args:
|
|
|
|
- NODE_BASE=lts-buster-slim
|
2022-08-11 14:39:29 +02:00
|
|
|
- NGINX_BASE=1.23.1-alpine
|
2022-08-11 14:16:10 +02:00
|
|
|
username:
|
|
|
|
from_secret: hub_user
|
|
|
|
password:
|
|
|
|
from_secret: hub_passwd
|
|
|
|
when:
|
2022-08-11 14:30:15 +02:00
|
|
|
event: pull_request
|
2022-08-11 14:16:10 +02:00
|
|
|
|
2022-09-13 12:59:11 +02:00
|
|
|
buildNextGitea:
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
#dry_run: true
|
|
|
|
registry: gitea.ocram85.com
|
2022-09-13 13:12:38 +02:00
|
|
|
repo: gitea.ocram85.com/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:
|
2022-08-11 14:16:10 +02:00
|
|
|
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-11 14:16:10 +02:00
|
|
|
|
|
|
|
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
|