2024-05-14 07:40:38 +02:00
|
|
|
when:
|
|
|
|
- event: [pull_request, tag, cron]
|
|
|
|
- event: push
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
|
2024-05-17 09:57:41 +02:00
|
|
|
variables:
|
|
|
|
- &build_plugin 'gitea.ocram85.com/plugins/gitea-package:next'
|
|
|
|
- &default_settings
|
2024-05-14 10:24:21 +02:00
|
|
|
user:
|
|
|
|
from_secret: gitea_user
|
|
|
|
password:
|
|
|
|
from_secret: gitea_passwd
|
|
|
|
owner: "plugins"
|
2024-05-14 07:40:38 +02:00
|
|
|
package_name: "dummy_package"
|
|
|
|
package_version: "0.1.0"
|
2024-05-14 10:24:21 +02:00
|
|
|
file_source: "./README.md"
|
|
|
|
file_name: "readme.md"
|
2024-05-17 09:57:41 +02:00
|
|
|
#update: "true"
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- "ci"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
default:
|
|
|
|
image: *build_plugin
|
|
|
|
pull: true
|
|
|
|
secrets: [ gitea_user, gitea_passwd]
|
|
|
|
settings:
|
|
|
|
<<: *default_settings
|
2024-05-14 10:24:21 +02:00
|
|
|
update: "true"
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
2024-05-17 09:57:41 +02:00
|
|
|
|
|
|
|
debug-out:
|
|
|
|
image: *build_plugin
|
2024-05-14 10:24:21 +02:00
|
|
|
pull: true
|
|
|
|
secrets: [ gitea_user, gitea_passwd]
|
|
|
|
settings:
|
2024-05-17 09:57:41 +02:00
|
|
|
<<: *default_settings
|
2024-05-14 07:40:38 +02:00
|
|
|
update: "true"
|
2024-05-17 09:57:41 +02:00
|
|
|
debug: "true"
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
no-update:
|
|
|
|
image: *build_plugin
|
|
|
|
pull: true
|
|
|
|
failure: ignore
|
|
|
|
secrets: [ gitea_user, gitea_passwd]
|
|
|
|
settings:
|
|
|
|
<<: *default_settings
|
|
|
|
debug: "true"
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
no-update-debug:
|
|
|
|
image: *build_plugin
|
|
|
|
pull: true
|
|
|
|
failure: ignore
|
|
|
|
secrets: [ gitea_user, gitea_passwd]
|
|
|
|
settings:
|
|
|
|
<<: *default_settings
|
2024-05-14 07:40:38 +02:00
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|