This commit is contained in:
parent
45e8883cae
commit
49b78cf10f
4 changed files with 41 additions and 40 deletions
|
@ -1,30 +1,39 @@
|
|||
---
|
||||
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:
|
||||
steps:
|
||||
build:
|
||||
image: *kaniko_plugin
|
||||
group: build
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: nold360/borgserver
|
||||
dockerfile: Dockerfile
|
||||
build_args:
|
||||
- BASE_IMAGE=debian:${BASE}
|
||||
tags: ${TAGS}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dry-run: true
|
||||
repo: git.merp.digital/${CI_REPO_OWNER}/borgserver
|
||||
platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le,linux/ppc64le,linux/s390x
|
||||
registry: git.merp.digital
|
||||
when:
|
||||
- branch: master
|
||||
- event: cron
|
||||
- event: push
|
||||
branch:
|
||||
exclude: [develop, master]
|
||||
|
||||
publish-nightly:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: git.merp.digital/${CI_REPO_OWNER}/borgserver
|
||||
platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le,linux/ppc64le,linux/s390x
|
||||
registry: git.merp.digital
|
||||
tags: develop-${CI_COMMIT_SHA}
|
||||
username: ${CI_REPO_OWNER}
|
||||
password:
|
||||
from_secret: cb_token
|
||||
when:
|
||||
- event: push
|
||||
branch: develop
|
||||
|
||||
publish-release:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: git.merp.digital/${CI_REPO_OWNER}/borgserver
|
||||
platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le,linux/ppc64le,linux/s390x
|
||||
registry: git.merp.digital
|
||||
tags: ${CI_COMMIT_TAG}
|
||||
username: ${CI_REPO_OWNER}
|
||||
password:
|
||||
from_secret: cb_token
|
||||
when:
|
||||
- event: tag
|
Loading…
Add table
Add a link
Reference in a new issue