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