From c9718ee878bc81ff1ff0f98b757508279be9a495 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Fri, 12 Aug 2022 11:17:33 +0200 Subject: [PATCH] add master pipeline --- .woodpecker/.master.yml | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .woodpecker/.master.yml diff --git a/.woodpecker/.master.yml b/.woodpecker/.master.yml new file mode 100644 index 0000000..2a7f3fd --- /dev/null +++ b/.woodpecker/.master.yml @@ -0,0 +1,49 @@ +depends_on: + - test + +pipeline: + buildMaster: + image: plugins/docker + settings: + repo: ocram85/blog + dockerfile: Dockerfile + auto_tag: true + build_args: + - NODE_BASE=lts-buster-slim + - NGINX_BASE=1.23.1-alpine + username: + from_secret: hub_user + password: + from_secret: hub_passwd + when: + event: push + branch: master + + trivyMaster: + 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:latest + when: + event: push + branch: master + + triggerPortainerMaster: + image: ocram85/portainer-serviceupdate + settings: + #VERBOSE: true + URI: "https://portainer.ocram85.com" + TOKEN: + from_secret: TOKEN + when: + event: push + branch: master