From ce96e5592a7169eed05b054bb00d9d0142ac38b1 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Tue, 14 Jan 2025 03:05:02 +0400 Subject: [PATCH] Use Docker buildx to build images --- .woodpecker/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index 3398e5c..641c30a 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -14,7 +14,7 @@ steps: test-build: image: docker:27-dind commands: - - docker build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} . + - docker buildx build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} . volumes: - /var/run/docker.sock:/var/run/docker.sock when: @@ -27,7 +27,7 @@ steps: from_secret: registry_token commands: - docker login -u ${CI_REPO_OWNER} -p $${CI_USER_PASSWORD} source.hodakov.me - - docker build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} . + - docker buildx build -t source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} . - docker push source.hodakov.me/hdkv/phpbb:${CI_COMMIT_SHA:0:10}-${platform##linux/} volumes: - /var/run/docker.sock:/var/run/docker.sock