
pushnamespacefiles
pushnamespacefiles
yaml
type: "io.kestra.plugin.git.pushnamespacefiles"Examples
yaml
id: push_to_git
namespace: system
tasks:
- id: commit_and_push
type: io.kestra.plugin.git.PushNamespaceFiles
namespace: dev
files: "**"
gitDirectory: _files
url: https://github.com/kestra-io/scripts
username: git_username
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
branch: dev
commitMessage: "add namespace files"
dryRun: true
triggers:
- id: schedule_push_to_git
type: io.kestra.plugin.core.trigger.Schedule
cron: "*/15 * * * *"
yaml
id: git_push
namespace: system
tasks:
- id: push
type: io.kestra.plugin.core.flow.ForEach
values: ["company", "company.team", "company.analytics"]
tasks:
- id: flows
type: io.kestra.plugin.git.PushFlows
sourceNamespace: "{{ taskrun.value }}"
gitDirectory: "{{'flows/' ~ taskrun.value}}"
includeChildNamespaces: false
- id: scripts
type: io.kestra.plugin.git.PushNamespaceFiles
namespace: "{{ taskrun.value }}"
gitDirectory: "{{'scripts/' ~ taskrun.value}}"
pluginDefaults:
- type: io.kestra.plugin.git
values:
username: anna-geller
url: https://github.com/anna-geller/product
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
branch: main
dryRun: false
triggers:
- id: schedule_push_to_git
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 11 * * 4"
Properties
branchstring
Default
maincloneSubmodulesbooleanstring
commitMessagestring
Default
Add files from `namespace` namespaceconnectTimeoutintegerstring
Default
10000deletebooleanstring
Default
truedryRunbooleanstring
Default
falseerrorOnMissingbooleanstring
Default
falsefilesobject
Default
**gitConfigobject
gitDirectorystring
Default
_filesnamespacestring
Default
{{ flow.namespace }}noProxybooleanstring
passphrasestring
passwordstring
privateKeystring
readTimeoutintegerstring
Default
60000