Site => SiteRepo

This commit is contained in:
egarette@silique.fr 2023-03-02 21:41:57 +01:00
parent 86e92cfb9c
commit 8c69e432f9
3 changed files with 18 additions and 10 deletions

View file

@ -1,4 +1,8 @@
version: '0.10' version: '0.10'
services:
- service:
- name: oauth2-client
disabled: true
variables: variables:
- family: - family:
- name: network - name: network
@ -25,23 +29,25 @@ variables:
mandatory: true mandatory: true
- name: forgejo_site - name: forgejo_site
hidden: true hidden: true
provider: Site provider: SiteRepo
mandatory: true mandatory: true
- name: forgejo_site_user - name: forgejo_site_user
type: unix_user type: unix_user
hidden: true hidden: true
mandatory: true mandatory: true
provider: Site:username provider: SiteRepo:username
- name: forgejo_site_email - name: forgejo_site_email
type: mail type: mail
hidden: true hidden: true
mandatory: true mandatory: true
provider: Site:email provider: SiteRepo:email
- name: forgejo_site_password - name: forgejo_site_password
type: password type: password
hidden: true hidden: true
mandatory: true mandatory: true
provider: Site:password provider: SiteRepo:password
- name: oauth2_client
disabled: true
constraints: constraints:
- fill: - fill:
- name: get_password - name: get_password

View file

@ -4,7 +4,7 @@ services:
- name: nginx - name: nginx
override: null override: null
- name: site_update - name: site_update
engine: none engine: cheetah
target: timers target: timers
file: file:
- text: /sbin/site_update - text: /sbin/site_update
@ -27,21 +27,22 @@ variables:
- variable: - variable:
- name: site_domain_name - name: site_domain_name
hidden: true hidden: true
supplier: Site supplier: SiteRepo
mandatory: true
- name: site_user_name - name: site_user_name
type: unix_user type: unix_user
hidden: true hidden: true
supplier: Site:username supplier: SiteRepo:username
value: value:
- text: site - text: site
- name: site_user_mail - name: site_user_mail
type: mail type: mail
description: Email de l'utilisateur Site dans Forgejo description: Email de l'utilisateur "site" dans Forgejo
supplier: Site:email supplier: SiteRepo:email
- name: site_user_password - name: site_user_password
type: password type: password
hidden: true hidden: true
supplier: Site:password supplier: SiteRepo:password
constraints: constraints:
- fill: - fill:
- name: get_password - name: get_password

View file

@ -4,6 +4,7 @@ After=risotto.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStartPre=/usr/bin/timeout 60 bash -c 'while ! 3<> /dev/tcp/%%site_domain_name/3000; do sleep 1; done'
ExecStart=/usr/local/lib/sbin/site_update ExecStart=/usr/local/lib/sbin/site_update
[Install] [Install]