Implements woodpecker pipeline #19
@ -1,11 +1,6 @@
|
|||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
exclude:
|
|
||||||
- master
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
buildNext:
|
buildNext:
|
||||||
image: woopeckerci/plugin-docker-buildx
|
image: woopeckerci/plugin-docker-buildx
|
||||||
@ -13,7 +8,7 @@ pipeline:
|
|||||||
dry_run: true
|
dry_run: true
|
||||||
repo: ocram85/blog
|
repo: ocram85/blog
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
tags: "next"
|
tags: next
|
||||||
build_args:
|
build_args:
|
||||||
- NODE_BASE=lts-buster-slim
|
- NODE_BASE=lts-buster-slim
|
||||||
- NGINX_BASE=1.21.6-alpine
|
- NGINX_BASE=1.21.6-alpine
|
||||||
@ -22,8 +17,7 @@ pipeline:
|
|||||||
password:
|
password:
|
||||||
from_secret: hub_passwd
|
from_secret: hub_passwd
|
||||||
when:
|
when:
|
||||||
event:
|
event: pull_request
|
||||||
- pull_request
|
|
||||||
|
|
||||||
trivy:
|
trivy:
|
||||||
image: aquasec/trivy:0.24.3
|
image: aquasec/trivy:0.24.3
|
||||||
@ -40,8 +34,7 @@ pipeline:
|
|||||||
--no-progress \
|
--no-progress \
|
||||||
ocram85/blog:next
|
ocram85/blog:next
|
||||||
when:
|
when:
|
||||||
event:
|
event: pull_request
|
||||||
- pull_request
|
|
||||||
|
|
||||||
triggerPortainer:
|
triggerPortainer:
|
||||||
image: ocram85/portainer-serviceupdate
|
image: ocram85/portainer-serviceupdate
|
||||||
@ -51,5 +44,4 @@ pipeline:
|
|||||||
TOKEN:
|
TOKEN:
|
||||||
from_secret: NEXT_TOKEN
|
from_secret: NEXT_TOKEN
|
||||||
when:
|
when:
|
||||||
event:
|
event: pull_request
|
||||||
- pull_request
|
|
||||||
|
Loading…
Reference in New Issue
Block a user