use setuptools to build publik-base-theme (#88271)
gitea/publik-devinst/pipeline/head This commit looks good
Details
gitea/publik-devinst/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ff1d4c69c6
commit
fc6364fb7f
|
@ -1,2 +0,0 @@
|
|||
theme_repo: "publik-base-theme"
|
||||
theme_link: "publik-base"
|
|
@ -262,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}}"
|
||||
|
|
|
@ -26,3 +26,4 @@
|
|||
command: "{{ virtualenv }}/bin/python setup.py build"
|
||||
args:
|
||||
chdir: "{{ repo_dir }}"
|
||||
when: do_build | default(true)
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue