From a25c363582051a9a318c232aa03c3dac8de8fda0 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 18 Jul 2025 16:13:29 +0200 Subject: [PATCH] Add CI/CD --- .drone-manifest.yml | 22 ++++++++++++++++++++++ .woodpecker.yaml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .drone-manifest.yml create mode 100644 .woodpecker.yaml diff --git a/.drone-manifest.yml b/.drone-manifest.yml new file mode 100644 index 0000000..94c27bf --- /dev/null +++ b/.drone-manifest.yml @@ -0,0 +1,22 @@ +image: nemunaire/openvpn-fdn:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - image: nemunaire/openvpn-fdn:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + platform: + architecture: amd64 + os: linux + - image: nemunaire/openvpn-fdn:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + - image: nemunaire/openvpn-fdn:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + platform: + architecture: arm + os: linux + variant: v7 diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..c68a3c7 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,36 @@ +matrix: + platform: + - linux/amd64 + - linux/arm64 + +labels: + platform: ${platform} + +when: + event: + - push + - tag + - cron + +steps: + build-container: + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: nemunaire/openvpn-fdn + auto_tag: true + auto_tag_suffix: "${platform%/*}-${platform#*/}" + + publish-manifest: + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + spec: .drone-manifest.yml + username: + from_secret: docker_username + password: + from_secret: docker_password