1
0
Fork 0

Refactor pipeline to use new Docker build plugin
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
naicoi 2023-05-18 14:40:45 +07:00
parent 5fddcc0b14
commit 6795fc2486
Signed by: naicoi
GPG Key ID: 7142E472DF7CF7D9
1 changed files with 7 additions and 12 deletions

View File

@ -1,7 +1,4 @@
matrix:
platform:
- amd64
- arm64
os:
- alpine
- slim
@ -10,18 +7,16 @@ matrix:
- 18
- 20
platform: linux/${platform}
pipeline:
build:
image: plugins/docker
${version}-${os}:
image: woodpeckerci/plugin-docker-buildx
settings:
registry: techio.dev
repo: techio.dev/${CI_REPO}
repo: lttech/pm2
platforms: linux/amd64,linux/arm64/v8
tags:
- ${version}-${os}-${platform}
- ${version}-${os}
build_args:
- tag=${version}-${os}
username: deploy
username: lttech
password:
from_secret: deploy_password
from_secret: docker_lttech