From 258b6274ba9a15be00c85ef83fc6ba9f3a92d20d Mon Sep 17 00:00:00 2001 From: Aire-One Date: Fri, 9 Dec 2022 19:12:05 +0100 Subject: [PATCH] ci(docker-build): fix paths --- .woodpecker/docker-build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml index e0230a3..5a474fd 100644 --- a/.woodpecker/docker-build.yml +++ b/.woodpecker/docker-build.yml @@ -1,31 +1,32 @@ variables: - &buildx woodpeckerci/plugin-docker-buildx:2.0.0 - &platforms linux/amd64 + - &dockerfile_path ${dockerfile_path} - &when_path .woodpecker/docker-build.yml matrix: DOCKERFILE: - - .woodpecker/docker/Dockerfile.cyan - - .woodpecker/docker/Dockerfile.luacheck_just - - .woodpecker/docker/Dockerfile.stylua_just + - Dockerfile.cyan + - Dockerfile.luacheck_just + - Dockerfile.stylua_just pipeline: dryrun: image: *buildx settings: - dockerfile: ${DOCKERFILE} + dockerfile: ${dockerfile_path}${DOCKERFILE} platforms: *platforms dry_run: true when: event: pull_request path: - *when_path - - ${DOCKERFILE} + - ${dockerfile_path}${DOCKERFILE} publish: image: *buildx settings: - dockerfile: ${DOCKERFILE} + dockerfile: ${dockerfile_path}${DOCKERFILE} platforms: *platforms registry: gitea.aireone.xyz repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE} @@ -38,6 +39,6 @@ pipeline: event: push path: - *when_path - - ${DOCKERFILE} + - ${dockerfile_path}${DOCKERFILE} branches: master