From 6795fc248642c0c2bf81c1d6d52a9ec1446d75f6 Mon Sep 17 00:00:00 2001 From: naicoi Date: Thu, 18 May 2023 14:40:45 +0700 Subject: [PATCH] Refactor pipeline to use new Docker build plugin 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`. --- .woodpecker.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 5175db6..edcaaf7 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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