From a51e45d990362a5e49523364ec13bab71b68edf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Thu, 3 Aug 2023 16:13:41 +0200 Subject: [PATCH] added Woodpecker CI --- .woodpecker.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..d62445d --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,44 @@ +# Build and publish Docker images for multible architectures. +# +# Pushing an image to codeberg as container registry, +# package owner will be the repo owner. +# +# this config also shows usage of yaml aliases and +# was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml + +when: + branch: main + +variables: + - &file Dockerfile + - &repo git.jmbit.de/${CI_REPO_OWNER}/${CI_REPO_NAME} + +steps: + test: + image: node + commands: + - npm install + - npm run vite check + when: + event: [ pull-request, push] + + build: + image: node + commands: + - npm install + - npm run vite build + + publish: + image: woodpeckerci/plugin-docker-buildx + settings: + dockerfile: *file + platforms: linux/amd64 + repo: *repo + registry: git.jmbit.de + tags: latest + username: ${CI_REPO_OWNER} + password: + from_secret: forgejo_token + when: + event: push +