multi image build in woodpecker 🥳
This commit is contained in:
parent
1af0a476c9
commit
87c5bfeb75
2 changed files with 28 additions and 37 deletions
49
.woodpecker.yaml
Normal file
49
.woodpecker.yaml
Normal file
|
@ -0,0 +1,49 @@
|
|||
when:
|
||||
- event: [push, manual]
|
||||
matrix:
|
||||
NEXTCLOUD_VERSION:
|
||||
- 28
|
||||
- 29
|
||||
steps:
|
||||
- name: patch
|
||||
image: debian
|
||||
commands:
|
||||
- "./patch-nextcloud.sh"
|
||||
environment:
|
||||
NEXTCLOUD_VERSION: ${NEXTCLOUD_VERSION}
|
||||
- name: docker
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
registry: git.ar21.de
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASS
|
||||
repo: git.ar21.de/aaron/nextcloud-fpm
|
||||
dockerfile: "nextcloud-docker/${NEXTCLOUD_VERSION}/fpm/Dockerfile"
|
||||
tags_file: "nextcloud-docker/${NEXTCLOUD_VERSION}/fpm/.tags"
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
when:
|
||||
- branch: main
|
||||
- name: docker-build
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
registry: git.ar21.de
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASS
|
||||
repo: git.ar21.de/aaron/nextcloud-fpm
|
||||
dockerfile: "nextcloud-docker/${NEXTCLOUD_VERSION}/fpm/Dockerfile"
|
||||
tags_file: "nextcloud-docker/${NEXTCLOUD_VERSION}/fpm/.tags"
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
dry_run: true
|
||||
when:
|
||||
- branch:
|
||||
exclude: main
|
Loading…
Add table
Add a link
Reference in a new issue