Skip to content

Commit 6b92002

Browse files
authored
Merge pull request roles-ansible#103 from benoit-garcia/main
feat: Add support for Gitea Actions
2 parents 16a304b + 3f4f8f5 commit 6b92002

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,14 @@ Either you define exactly which release you install. Or you use the option ``lat
293293
| `gitea_lfs_storage_type` | `local` | Storage type for lfs |
294294
| `gitea_lfs_serve_direct` | `false` | Allows the storage driver to redirect to authenticated URLs to serve files directly. *(only Minio/S3)* |
295295
| `gitea_lfs_content_path` | `{{ gitea_home }}/data/lfs` | Where to store LFS files |
296-
| `gitea_lfs_extra` ||you can use this variable to pass additional config parameters in the `[lfs]` section of the config. |
296+
| `gitea_lfs_extra` | | you can use this variable to pass additional config parameters in the `[lfs]` section of the config. |
297+
298+
### Actions ([actions](https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions))
299+
| variable name | default value | description |
300+
| ------------- | ------------- | ----------- |
301+
| `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 |
302+
| `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` |
303+
| `gitea_actions_extra` | | you can use this variable to pass additional config parameters in the `[actions]` section of the config. |
297304

298305
### Other ([other](https://docs.gitea.io/en-us/config-cheat-sheet/#other-other))
299306
| variable name | default value | description |

defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ gitea_lfs_serve_direct: false
227227
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
228228
gitea_lfs_extra: ''
229229

230+
# Actions (actions)
231+
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions
232+
gitea_actions_enabled: false
233+
gitea_actions_default_actions_url: "https://gitea.com"
234+
gitea_actions_extra: ''
235+
230236
# Other (other)
231237
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
232238
gitea_other_show_footer_branding: false

templates/gitea.ini.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,15 @@ PATH = {{ gitea_lfs_content_path }}
271271
{% endif %}
272272
;
273273
;
274+
{% if gitea_actions_enabled | bool %}
275+
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#actions-actions
276+
[actons]
277+
ENABLED = {{ gitea_actions_enabled }}
278+
DEFAULT_ACTIONS_URL = {{ gitea_actions_default_actions_url }}
279+
{{ gitea_actions_extra }}
280+
{% endif %}
281+
;
282+
;
274283
; Other (other)
275284
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#other-other
276285
[other]

vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ transfer_custom_footer:
6262
- 'files/gitea_footer/extra_links_footer.tmpl'
6363
- 'files/extra_links_footer.tmpl'
6464

65-
playbook_version_number: 44 # should be int
65+
playbook_version_number: 45 # should be int
6666
playbook_version_path: 'do1jlr.gitea.version'

0 commit comments

Comments
 (0)