woodpecker-ansible-runner/.woodpecker.yml

34 lines
930 B
YAML
Raw Normal View History

2022-12-18 16:18:24 +01:00
pipeline:
build-only:
image: woodpeckerci/plugin-docker-buildx
settings:
2023-04-20 19:27:34 +02:00
repo: git.sebclem.fr/sebclem/${CI_REPO_NAME}
2023-04-20 19:39:39 +02:00
cache_from: git.sebclem.fr/sebclem/${CI_REPO_NAME}
2023-04-20 19:27:34 +02:00
registry: git.sebclem.fr
2022-12-18 16:18:24 +01:00
dry_run: true
logins:
2023-04-20 19:27:34 +02:00
- registry: https://git.sebclem.fr
2022-12-18 16:18:24 +01:00
username:
2023-04-20 19:27:34 +02:00
from_secret: docker_user
2022-12-18 16:18:24 +01:00
password:
2023-04-20 19:27:34 +02:00
from_secret: docker_token
2022-12-18 16:18:24 +01:00
when:
event: [push, pull_request, manual]
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64
tag: latest
2023-04-20 19:27:34 +02:00
repo: git.sebclem.fr/sebclem/${CI_REPO_NAME}
2023-04-20 19:39:39 +02:00
cache_from: git.sebclem.fr/sebclem/${CI_REPO_NAME}
2022-12-18 16:18:24 +01:00
logins:
2023-04-20 19:27:34 +02:00
- registry: https://git.sebclem.fr
2022-12-18 16:18:24 +01:00
username:
2023-04-20 19:27:34 +02:00
from_secret: docker_user
2022-12-18 16:18:24 +01:00
password:
2023-04-20 19:27:34 +02:00
from_secret: docker_token
2022-12-18 16:18:24 +01:00
when:
environment: production
event: deployment