2023-05-13 02:30:08 +02:00
|
|
|
- name: Clone private Git repository
|
|
|
|
git:
|
|
|
|
repo: https://git:{{ git_token }}@git.front.kjuulh.io/kjuulh/renovate.git
|
|
|
|
dest: ~/git/git.front.kjuulh.io/kjuulh/renovate
|
|
|
|
version: main
|
|
|
|
force: yes
|
|
|
|
|
|
|
|
- name: Ensure Docker Compose file exists
|
|
|
|
stat:
|
|
|
|
path: ~/git/git.front.kjuulh.io/kjuulh/renovate/docker-compose.yaml
|
|
|
|
register: compose_file_stat
|
|
|
|
|
|
|
|
- name: Ensure .github.env exists
|
|
|
|
stat:
|
|
|
|
path: ~/git/git.front.kjuulh.io/kjuulh/renovate/.github.env
|
|
|
|
register: github_env_stat
|
|
|
|
|
|
|
|
- name: Ensure .env exists
|
|
|
|
stat:
|
|
|
|
path: ~/git/git.front.kjuulh.io/kjuulh/renovate/.env
|
|
|
|
register: env_stat
|
|
|
|
|
|
|
|
- name: Run Docker Compose
|
|
|
|
docker_compose:
|
|
|
|
project_src: ~/git/git.front.kjuulh.io/kjuulh/renovate/
|
|
|
|
when: compose_file_stat.stat.exists and github_env_stat.stat.exists and env_stat.stat.exists
|
2023-05-13 02:58:39 +02:00
|
|
|
|
|
|
|
- name: renovate clean cron job
|
|
|
|
cron:
|
|
|
|
name: renovate clean cronjob
|
|
|
|
user: "root"
|
|
|
|
minute: "0"
|
|
|
|
hour: "2,14"
|
|
|
|
job: "docker-compose -f ~/git/git.front.kjuulh.io/kjuulh/renovate/docker-compose.yaml down -v --remove-orphans && docker-compose -f ~/git/git.front.kjuulh.io/kjuulh/renovate/docker-compose.yaml up -d >> /var/log/renovate-clean.log 2>&1"
|