generated from Templates/Baseline
OCram85
8ce38ad8d7
### 📖 Summary - add tests ### 📑 Test Plan ✅ CI pipeline tests (Default) ### 💬 Details _No response_ ### 📚 Additional Notes _No response_ Reviewed-on: #10
71 lines
1.4 KiB
YAML
71 lines
1.4 KiB
YAML
when:
|
|
- event: [pull_request, tag, cron]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
variables:
|
|
- &build_plugin 'gitea.ocram85.com/plugins/gitea-package:next'
|
|
- &default_settings
|
|
user:
|
|
from_secret: gitea_user
|
|
password:
|
|
from_secret: gitea_passwd
|
|
owner: "plugins"
|
|
package_name: "dummy_package"
|
|
package_version: "0.1.0"
|
|
file_source: "./README.md"
|
|
file_name: "readme.md"
|
|
#update: "true"
|
|
|
|
depends_on:
|
|
- "ci"
|
|
|
|
steps:
|
|
default:
|
|
image: *build_plugin
|
|
pull: true
|
|
secrets: [ gitea_user, gitea_passwd]
|
|
settings:
|
|
<<: *default_settings
|
|
update: "true"
|
|
when:
|
|
event: pull_request
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
debug-out:
|
|
image: *build_plugin
|
|
pull: true
|
|
secrets: [ gitea_user, gitea_passwd]
|
|
settings:
|
|
<<: *default_settings
|
|
update: "true"
|
|
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
|
|
when:
|
|
event: pull_request
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|