docker-pyload-ng/.woodpecker.yml

28 lines
726 B
YAML
Raw Normal View History

2022-11-15 23:39:09 +01:00
pipeline:
docker:
image: woodpeckerci/plugin-docker-buildx
settings:
2022-11-16 20:03:19 +01:00
username:
from_secret: registry_username
2022-11-15 23:39:09 +01:00
password:
2022-11-16 20:03:19 +01:00
from_secret: registry_password
repo: ${DOCKER_REGISTRY}/${CI_REPO_OWNER}/pyload-ng
registry: ${DOCKER_REGISTRY}
2022-11-23 17:57:42 +01:00
mirror: https://${DOCKER_REGISTRY}
2022-11-15 23:39:09 +01:00
tags: latest
2022-11-21 11:21:08 +01:00
build_args: VERSION=dev
2022-11-15 23:39:09 +01:00
when:
2022-11-16 20:03:19 +01:00
branch: main
2023-02-18 18:23:42 +01:00
event: [push, cron, tag]
prod:
image: dtzar/helm-kubectl:3.10.3
commands:
- HOME=/root
- mkdir -p /root/.kube
- echo "$KUBE_CONFIG" > /root/.kube/config
- kubectl rollout restart deployment/pyload
secrets: [kube_config]
when:
branch: main
event: [deployment, cron]