From 05b982a1bdb2f695a999068b9a9d6db9ace048d8 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 4 Dec 2023 10:08:45 +0100 Subject: [PATCH] Add contianer build pipeline --- .woodpecker/build.yml | 10 +++++++++- .woodpecker/container.yml | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/container.yml diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 065056e..1387fa2 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -1,6 +1,14 @@ +version: 1 +when: + - event: [pull_request] + - event: push + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* + - fix/* steps: build: image: node:alpine commands: - npm ci - - npm run build + - npm run build diff --git a/.woodpecker/container.yml b/.woodpecker/container.yml new file mode 100644 index 0000000..6ae687f --- /dev/null +++ b/.woodpecker/container.yml @@ -0,0 +1,18 @@ +version: 1 +when: + - event: [tag] + branch: + - ${CI_REPO_DEFAULT_BRANCH} +steps: + build: + image: plugins/docker-buildx + settings: + dockerfile: Containerfile + tag: ${CI_COMMIT_TAG##v} + repo: git.trivernis.net/trivernis/plantwiki + registry: git.trivernis.net + platforms: linux/amd64,linux/arm64/v8 + username: woodpeckerbot + password: + from_secret: fogejo_token +