From 4860958f37fe5ec807b39f08caa605c0842ed420 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Mon, 22 Jan 2024 09:35:08 +0530 Subject: [PATCH] feat: init buildx --- .woodpecker.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 80aa2d2..f49cba2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,4 +1,4 @@ -pipeline: +steps: backend: image: rust environment: @@ -12,22 +12,32 @@ pipeline: - make - make test - build_docker_img: - image: plugins/docker + build-docker-img: + image: woodpeckerci/plugin-docker-buildx when: event: [pull_request] + secrets: [docker_token] settings: dry_run: true repo: realaravinth/libmedium - tags: latest - - build_and_publish_docker_img: - image: plugins/docker - when: - event: [push, tag, deployment] - settings: username: realaravinth password: from_secret: DOCKER_TOKEN + platforms: linux/amd64,linux/arm64/v8 + tag: latest + + + publish-docker-img: + image: woodpeckerci/plugin-docker-buildx + when: + event: [push, tag, deployment] + branch: master + secrets: [docker_token] + settings: + dry_run: true repo: realaravinth/libmedium - tags: latest + username: realaravinth + password: + from_secret: DOCKER_TOKEN + platforms: linux/amd64,linux/arm64/v8 + tag: latest