Refactor pipeline to use new Docker build plugin
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit removes the old Docker plugin and replaces it with a new one that supports multi-architecture builds. The `platform` field was removed from the matrix, and the `build` step was replaced with `${version}-${os}`. The new plugin also uses different settings for `repo`, `platforms`, and `username`.main
parent
5fddcc0b14
commit
6795fc2486
|
@ -1,7 +1,4 @@
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
|
||||||
- amd64
|
|
||||||
- arm64
|
|
||||||
os:
|
os:
|
||||||
- alpine
|
- alpine
|
||||||
- slim
|
- slim
|
||||||
|
@ -10,18 +7,16 @@ matrix:
|
||||||
- 18
|
- 18
|
||||||
- 20
|
- 20
|
||||||
|
|
||||||
platform: linux/${platform}
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
${version}-${os}:
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
registry: techio.dev
|
repo: lttech/pm2
|
||||||
repo: techio.dev/${CI_REPO}
|
platforms: linux/amd64,linux/arm64/v8
|
||||||
tags:
|
tags:
|
||||||
- ${version}-${os}-${platform}
|
- ${version}-${os}
|
||||||
build_args:
|
build_args:
|
||||||
- tag=${version}-${os}
|
- tag=${version}-${os}
|
||||||
username: deploy
|
username: lttech
|
||||||
password:
|
password:
|
||||||
from_secret: deploy_password
|
from_secret: docker_lttech
|
||||||
|
|
Loading…
Reference in New Issue