Compare commits

..

5 Commits

Author SHA1 Message Date
Frédéric Péters a45a6b866e ci: test against trixie (#78771)
gitea/publik-devinst/pipeline/head There was a failure building this commit Details
2024-03-19 18:27:58 +01:00
Emmanuel Cazenave fc6364fb7f use setuptools to build publik-base-theme (#88271)
gitea/publik-devinst/pipeline/head This commit looks good Details
2024-03-18 12:22:41 +01:00
Thomas NOËL ff1d4c69c6 install devscripts (#87970)
gitea/publik-devinst/pipeline/head This commit looks good Details
2024-03-08 18:42:41 +01:00
Emmanuel Cazenave 1dda8a9d6c delete unused template (#87523)
gitea/publik-devinst/pipeline/head This commit looks good Details
2024-02-27 12:31:08 +01:00
Emmanuel Cazenave af108cad77 wcs: use default.zip as skeleton (#86724)
gitea/publik-devinst/pipeline/head This commit looks good Details
2024-02-08 14:44:30 +01:00
7 changed files with 21 additions and 44 deletions

View File

@ -1,3 +0,0 @@
MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES
INSTALLED_APPS += ('debug_toolbar',)
INTERNAL_IPS = ['127.0.0.1']

View File

@ -1,2 +0,0 @@
theme_repo: "publik-base-theme"
theme_link: "publik-base"

View File

@ -3,6 +3,7 @@
apt:
name:
- acl
- devscripts
- gettext
- graphicsmagick
- graphviz
@ -261,14 +262,30 @@
- source
- name: install theme
import_tasks: tasks/install_theme.yml
import_tasks: tasks/install_source.yml
vars:
src_theme_dir: "{{src_dir}}/{{theme_repo}}"
repo: "publik-base-theme"
repo_dir: "{{src_dir}}/publik-base-theme"
virtualenv: "{{venv_py3}}"
version: "{{publik_base_theme_version|default('main')}}"
do_build: "{{compile_theme}}"
tags:
- theme
- source
- name: create themes directory
file:
path: "{{themes_dir}}"
state: directory
become: yes
- name: link to theme_repo
file:
src: "{{src_dir}}/publik-base-theme"
path: "{{themes_dir}}/publik-base"
state: link
become: yes
- name: create cert directory
file:
path: "{{certs_dir}}"

View File

@ -29,7 +29,6 @@
}},
{"create-wcs": {
"url": "https://{{tenants_conf['demarches-wcs']}}/",
"template_name": "{{wcs_skeleton_filename}}",
"title": "Démarches"
}},
{% if 'dev-passerelle' in tenants_conf and tenants_conf['dev-passerelle'] %}

View File

@ -1,5 +1,5 @@
cook_recipe_path: /tmp/cook-recipe.json
wcs_skeleton_filename: publik.zip
wcs_skeleton_filename: default.zip
wcs_error_email: ""
wcs_language: "fr"
wcs_postgres_user: ""

View File

@ -26,3 +26,4 @@
command: "{{ virtualenv }}/bin/python setup.py build"
args:
chdir: "{{ repo_dir }}"
when: do_build | default(true)

View File

@ -1,35 +0,0 @@
- name: ssh git clone {{theme_repo}}
git:
repo: gitea@git.entrouvert.org:entrouvert/{{theme_repo}}.git
dest: "{{src_theme_dir}}"
version: "{{version}}"
when:
- git_ssh
- name: standard git clone {{theme_repo}}
git:
repo: https://git.entrouvert.org/entrouvert/{{theme_repo}}.git
dest: "{{src_theme_dir}}"
version: "{{version}}"
when:
- not git_ssh
- name: compile theme {{theme_repo}}
make:
chdir: "{{src_theme_dir}}"
target: all
when: compile_theme
- name: create themes directory
file:
path: "{{themes_dir}}"
state: directory
become: yes
- name: link to {{theme_repo}}
file:
src: "{{src_theme_dir}}"
path: "{{themes_dir}}/{{theme_link}}"
state: link
become: yes