Fix: Create and host docker images for the CI (#34) #45
|
@ -1,7 +1,6 @@
|
||||||
variables:
|
variables:
|
||||||
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
||||||
- &platforms linux/amd64
|
- &platforms linux/amd64
|
||||||
- &dockerfile_path .woodpecker/docker/
|
|
||||||
- &when_path .woodpecker/docker-build.yml
|
- &when_path .woodpecker/docker-build.yml
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -14,22 +13,22 @@ pipeline:
|
||||||
dryrun:
|
dryrun:
|
||||||
image: *buildx
|
image: *buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ${dockerfile_path}${DOCKERFILE}
|
dockerfile: .woodpecker/docker/${DOCKERFILE}
|
||||||
platforms: *platforms
|
platforms: *platforms
|
||||||
dry_run: true
|
dry_run: true
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
path:
|
path:
|
||||||
- *when_path
|
- *when_path
|
||||||
- ${dockerfile_path}${DOCKERFILE}
|
- .woodpecker/docker/${DOCKERFILE}
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: *buildx
|
image: *buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ${dockerfile_path}${DOCKERFILE}
|
dockerfile: .woodpecker/docker/${DOCKERFILE}
|
||||||
platforms: *platforms
|
platforms: *platforms
|
||||||
registry: gitea.aireone.xyz
|
registry: gitea.aireone.xyz
|
||||||
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE}
|
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE/Dockerfile./}
|
||||||
tag: latest
|
tag: latest
|
||||||
username:
|
username:
|
||||||
from_secret: publish_username
|
from_secret: publish_username
|
||||||
|
@ -39,6 +38,6 @@ pipeline:
|
||||||
event: push
|
event: push
|
||||||
path:
|
path:
|
||||||
- *when_path
|
- *when_path
|
||||||
- ${dockerfile_path}${DOCKERFILE}
|
- .woodpecker/docker/${DOCKERFILE}
|
||||||
|
|
||||||
branches: master
|
branches: master
|
||||||
|
|
Loading…
Reference in New Issue