mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Merge pull request #103 from benoit-garcia/main
feat: Add support for Gitea Actions
This commit is contained in:
commit
6b920027af
4 changed files with 24 additions and 2 deletions
|
@ -295,6 +295,13 @@ Either you define exactly which release you install. Or you use the option ``lat
|
||||||
| `gitea_lfs_content_path` | `{{ gitea_home }}/data/lfs` | Where to store LFS files |
|
| `gitea_lfs_content_path` | `{{ gitea_home }}/data/lfs` | Where to store LFS files |
|
||||||
| `gitea_lfs_extra` | | you can use this variable to pass additional config parameters in the `[lfs]` section of the config. |
|
| `gitea_lfs_extra` | | you can use this variable to pass additional config parameters in the `[lfs]` section of the config. |
|
||||||
|
|
||||||
|
### Actions ([actions](https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions))
|
||||||
|
| variable name | default value | description |
|
||||||
|
| ------------- | ------------- | ----------- |
|
||||||
|
| `gitea_actions_enabled` | `false` | Enable/Disable actions capabilities globaly. You may want to add `repo.actions` to `gitea_default_repo_units` to enable actions on all new repositories |
|
||||||
|
| `gitea_actions_default_actions_url` | `https://gitea.com/` | Default address to get action plugins, e.g. the default value means downloading from `https://gitea.com/actions/checkout` for `uses: actions/checkout@v3` |
|
||||||
|
| `gitea_actions_extra` | | you can use this variable to pass additional config parameters in the `[actions]` section of the config. |
|
||||||
|
|
||||||
### Other ([other](https://docs.gitea.io/en-us/config-cheat-sheet/#other-other))
|
### Other ([other](https://docs.gitea.io/en-us/config-cheat-sheet/#other-other))
|
||||||
| variable name | default value | description |
|
| variable name | default value | description |
|
||||||
| ------------- | ------------- | ----------- |
|
| ------------- | ------------- | ----------- |
|
||||||
|
|
|
@ -227,6 +227,12 @@ gitea_lfs_serve_direct: false
|
||||||
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
|
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
|
||||||
gitea_lfs_extra: ''
|
gitea_lfs_extra: ''
|
||||||
|
|
||||||
|
# Actions (actions)
|
||||||
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions
|
||||||
|
gitea_actions_enabled: false
|
||||||
|
gitea_actions_default_actions_url: "https://gitea.com"
|
||||||
|
gitea_actions_extra: ''
|
||||||
|
|
||||||
# Other (other)
|
# Other (other)
|
||||||
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
|
||||||
gitea_other_show_footer_branding: false
|
gitea_other_show_footer_branding: false
|
||||||
|
|
|
@ -271,6 +271,15 @@ PATH = {{ gitea_lfs_content_path }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
{% if gitea_actions_enabled | bool %}
|
||||||
|
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions
|
||||||
|
[actons]
|
||||||
|
ENABLED = {{ gitea_actions_enabled }}
|
||||||
|
DEFAULT_ACTIONS_URL = {{ gitea_actions_default_actions_url }}
|
||||||
|
{{ gitea_actions_extra }}
|
||||||
|
{% endif %}
|
||||||
|
;
|
||||||
|
;
|
||||||
; Other (other)
|
; Other (other)
|
||||||
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
|
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
|
||||||
[other]
|
[other]
|
||||||
|
|
|
@ -62,5 +62,5 @@ transfer_custom_footer:
|
||||||
- 'files/gitea_footer/extra_links_footer.tmpl'
|
- 'files/gitea_footer/extra_links_footer.tmpl'
|
||||||
- 'files/extra_links_footer.tmpl'
|
- 'files/extra_links_footer.tmpl'
|
||||||
|
|
||||||
playbook_version_number: 44 # should be int
|
playbook_version_number: 45 # should be int
|
||||||
playbook_version_path: 'do1jlr.gitea.version'
|
playbook_version_path: 'do1jlr.gitea.version'
|
||||||
|
|
Loading…
Reference in a new issue