Add CI/CD
This commit is contained in:
parent
5ba8d0df1c
commit
ee20f0f6f3
2 changed files with 58 additions and 0 deletions
22
.drone-manifest.yml
Normal file
22
.drone-manifest.yml
Normal file
|
@ -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
|
36
.woodpecker.yaml
Normal file
36
.woodpecker.yaml
Normal file
|
@ -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/\//-/}"
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue