add(ci): woodpecker.yml
This commit is contained in:
parent
57ed075e22
commit
ef02f845dc
52
.drone.yml
52
.drone.yml
|
@ -1,52 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: build
|
||||
type: kubernetes
|
||||
|
||||
steps:
|
||||
- name: build-bookworm
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: nold360/borgserver
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- BASE_IMAGE=debian:bookworm-slim
|
||||
tags:
|
||||
- bookworm
|
||||
- 1.2
|
||||
- 1.2.2
|
||||
|
||||
- name: build-bullseye
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: nold360/borgserver
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- BASE_IMAGE=debian:bullseye-slim
|
||||
tags:
|
||||
- latest
|
||||
- bullseye
|
||||
- 1.1.16
|
||||
|
||||
- name: build-buster
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: nold360/borgserver
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- BASE_IMAGE=debian:buster-slim
|
||||
tags:
|
||||
- buster
|
||||
- 1.1.9
|
30
.woodpecker.yml
Normal file
30
.woodpecker.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
variables:
|
||||
- &kaniko_plugin 'plugins/kaniko:1.6'
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- BASE: bookworm-slim
|
||||
TAGS: '[ "bookwork", "1.2", "1.2.2" ]'
|
||||
- BASE: bullseye-slim
|
||||
TAGS: '[ "bullseye", "latest", "1.1.16" ]'
|
||||
- BASE: buster-slim
|
||||
TAGS: '[ "buster", "1.1.9" ]'
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: *kaniko_plugin
|
||||
group: build
|
||||
settings:
|
||||
repo: nold360/borgserver
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- BASE_IMAGE=debian:${BASE}
|
||||
tags: ${TAGS}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
when:
|
||||
- branch: master
|
||||
- event: cron
|
Loading…
Reference in a new issue