Merge pull request 'Fix: Create and host docker images for the CI (#34)' (#45) from fix/ci-docker-build into master
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker-build Pipeline was successful Details
ci/woodpecker/push/lint Pipeline was successful Details

Reviewed-on: #45
This commit is contained in:
Aire-One 2022-12-09 19:54:13 +01:00
commit 740afce61b
1 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,6 @@
variables:
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
- &platforms linux/amd64
- &dockerfile_path .woodpecker/docker/
- &when_path .woodpecker/docker-build.yml
matrix:
@ -14,22 +13,22 @@ pipeline:
dryrun:
image: *buildx
settings:
dockerfile: ${dockerfile_path}${DOCKERFILE}
dockerfile: .woodpecker/docker/${DOCKERFILE}
platforms: *platforms
dry_run: true
when:
event: pull_request
path:
- *when_path
- ${dockerfile_path}${DOCKERFILE}
- .woodpecker/docker/${DOCKERFILE}
publish:
image: *buildx
settings:
dockerfile: ${dockerfile_path}${DOCKERFILE}
dockerfile: .woodpecker/docker/${DOCKERFILE}
platforms: *platforms
registry: gitea.aireone.xyz
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE}
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE/Dockerfile./}
tag: latest
username:
from_secret: publish_username
@ -39,6 +38,6 @@ pipeline:
event: push
path:
- *when_path
- ${dockerfile_path}${DOCKERFILE}
- .woodpecker/docker/${DOCKERFILE}
branches: master