generated from Templates/Baseline
add variables in pipelines
This commit is contained in:
parent
ae7476ec3b
commit
7db00e52d1
@ -4,15 +4,10 @@ when:
|
|||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- "ci"
|
|
||||||
|
|
||||||
steps:
|
variables:
|
||||||
default:
|
- &build_plugin 'gitea.ocram85.com/plugins/gitea-package:next'
|
||||||
image: gitea.ocram85.com/plugins/gitea-package:next
|
- &default_settings
|
||||||
pull: true
|
|
||||||
secrets: [ gitea_user, gitea_passwd]
|
|
||||||
settings:
|
|
||||||
user:
|
user:
|
||||||
from_secret: gitea_user
|
from_secret: gitea_user
|
||||||
password:
|
password:
|
||||||
@ -22,25 +17,29 @@ steps:
|
|||||||
package_version: "0.1.0"
|
package_version: "0.1.0"
|
||||||
file_source: "./README.md"
|
file_source: "./README.md"
|
||||||
file_name: "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"
|
update: "true"
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
debug-out:
|
debug-out:
|
||||||
image: gitea.ocram85.com/plugins/gitea-package:next
|
image: *build_plugin
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ gitea_user, gitea_passwd]
|
secrets: [ gitea_user, gitea_passwd]
|
||||||
settings:
|
settings:
|
||||||
user:
|
<<: *default_settings
|
||||||
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"
|
update: "true"
|
||||||
debug: "true"
|
debug: "true"
|
||||||
when:
|
when:
|
||||||
@ -48,40 +47,24 @@ steps:
|
|||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
no-update:
|
no-update:
|
||||||
image: gitea.ocram85.com/plugins/gitea-package:next
|
image: *build_plugin
|
||||||
pull: true
|
pull: true
|
||||||
failure: ignore
|
failure: ignore
|
||||||
secrets: [ gitea_user, gitea_passwd]
|
secrets: [ gitea_user, gitea_passwd]
|
||||||
settings:
|
settings:
|
||||||
user:
|
<<: *default_settings
|
||||||
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"
|
|
||||||
debug: "true"
|
debug: "true"
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
no-update-debug:
|
no-update-debug:
|
||||||
image: gitea.ocram85.com/plugins/gitea-package:next
|
image: *build_plugin
|
||||||
pull: true
|
pull: true
|
||||||
failure: ignore
|
failure: ignore
|
||||||
secrets: [ gitea_user, gitea_passwd]
|
secrets: [ gitea_user, gitea_passwd]
|
||||||
settings:
|
settings:
|
||||||
user:
|
<<: *default_settings
|
||||||
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"
|
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
Loading…
Reference in New Issue
Block a user