ClaptrapBot/.woodpecker/build_docker.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2023-12-29 15:38:43 +01:00
steps:
2023-12-29 16:22:04 +01:00
build-only:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.sebclem.fr/sebclem/${CI_REPO_NAME,,}
cache_from: git.sebclem.fr/sebclem/${CI_REPO_NAME,,}
registry: git.sebclem.fr
logins:
- registry: https://git.sebclem.fr
username:
from_secret: docker_user
password:
from_secret: docker_token
when:
branch: renovate/*
event: [push, pull_request, manual]
publish-dev:
2023-12-29 15:38:43 +01:00
image: woodpeckerci/plugin-docker-buildx
settings:
2023-12-29 15:40:43 +01:00
repo: git.sebclem.fr/sebclem/${CI_REPO_NAME,,}
cache_from: git.sebclem.fr/sebclem/${CI_REPO_NAME,,}
2023-12-29 15:38:43 +01:00
registry: git.sebclem.fr
2023-12-29 16:15:31 +01:00
tag: ${CI_COMMIT_BRANCH}
2023-12-29 15:38:43 +01:00
logins:
- registry: https://git.sebclem.fr
username:
from_secret: docker_user
password:
from_secret: docker_token
when:
2023-12-29 16:22:04 +01:00
branch:
exclude: renovate/*
2023-12-29 15:38:43 +01:00
event: [push, pull_request, manual]
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64
auto_tag: true
2023-12-29 15:40:43 +01:00
repo: git.sebclem.fr/sebclem/${CI_REPO_NAME,,}
cache_from: git.sebclem.fr/sebclem/${CI_REPO_NAME,,}
2023-12-29 15:38:43 +01:00
logins:
- registry: https://git.sebclem.fr
username:
from_secret: docker_user
password:
from_secret: docker_token
when:
event:
- tag