mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-27 08:41:26 +01:00
Merge pull request #232 from cschug/kestra_yamllint
Fix various issues in Kestra reported by yamllint
This commit is contained in:
commit
f2772a02d0
@ -1,11 +1,12 @@
|
||||
---
|
||||
# Kestra Docker File Build Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# Build a Docker image from a File.
|
||||
#
|
||||
|
||||
id: docker-file-build
|
||||
namespace: # your-namespace
|
||||
namespace: # your-namespace
|
||||
|
||||
tasks:
|
||||
|
||||
@ -29,7 +30,7 @@ tasks:
|
||||
- id: build
|
||||
type: io.kestra.plugin.docker.Build
|
||||
dockerfile: "src/Dockerfile"
|
||||
tags:
|
||||
tags:
|
||||
- your-username/your-repository:your-tag
|
||||
push: true
|
||||
credentials:
|
||||
|
@ -1,11 +1,12 @@
|
||||
---
|
||||
# Kestra Docker Git Build Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# Build a Docker image from a Git repository.
|
||||
#
|
||||
|
||||
id: docker-git-build
|
||||
namespace: # your-namespace
|
||||
namespace: # your-namespace
|
||||
|
||||
tasks:
|
||||
|
||||
@ -20,7 +21,7 @@ tasks:
|
||||
- id: build
|
||||
type: io.kestra.plugin.docker.Build
|
||||
dockerfile: "src/Dockerfile"
|
||||
tags:
|
||||
tags:
|
||||
- your-username/your-repository:your-tag
|
||||
push: true
|
||||
credentials:
|
||||
|
@ -1,11 +1,12 @@
|
||||
---
|
||||
# Kestra Inputs Template
|
||||
# ---
|
||||
#
|
||||
# Inputs is a list of dynamic values passed to the flow at runtime.
|
||||
#
|
||||
#
|
||||
# Inputs is a list of dynamic values passed to the flow at runtime.
|
||||
#
|
||||
|
||||
id: inputs
|
||||
namespace: # your-namespace
|
||||
namespace: # your-namespace
|
||||
|
||||
inputs:
|
||||
- id: string
|
||||
|
@ -1,14 +1,15 @@
|
||||
---
|
||||
# Kestra Python Command Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# This template is a simple Python script.
|
||||
#
|
||||
#
|
||||
# usage:
|
||||
# make sure the Kestra instance can access the /app/scripts/your-python-script.py file
|
||||
# if you're running Kestra in Docker, use a volume to mount the file/directory.
|
||||
|
||||
id: python-command
|
||||
namespace: # your-namespace
|
||||
namespace: # your-namespace
|
||||
|
||||
tasks:
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
---
|
||||
# Kestra Python Command Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# This template is a simple Python script that can be used to make a request to a website and log the status code.
|
||||
#
|
||||
#
|
||||
|
||||
id: python-script
|
||||
namespace: # your-namespace
|
||||
namespace: # your-namespace
|
||||
|
||||
tasks:
|
||||
|
||||
@ -15,10 +16,10 @@ tasks:
|
||||
script: |
|
||||
from kestra import Kestra
|
||||
import requests
|
||||
|
||||
|
||||
response = requests.get('{{inputs.website}}')
|
||||
print(response.status_code)
|
||||
|
||||
|
||||
Kestra.outputs({'status': response.status_code, 'text': response.text})
|
||||
beforeCommands:
|
||||
- pip install requests kestra
|
||||
|
@ -1,11 +1,12 @@
|
||||
---
|
||||
# Kestra Variable Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
id: variables
|
||||
namespace: # your-namespace
|
||||
namespace: # your-namespace
|
||||
|
||||
variables:
|
||||
variable-name: "variable-value"
|
||||
|
@ -1,18 +1,19 @@
|
||||
---
|
||||
# Kestra Webhook Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# This template is a simple webhook trigger that can be used to trigger a task execution.
|
||||
#
|
||||
#
|
||||
# usage:
|
||||
# curl http://your-kestra-instance/api/v1/executions/webhook/your-namespace/your-task-id/your-secret-key
|
||||
|
||||
id: webhook
|
||||
namespace: # your-namespace
|
||||
namespace: # your-namespace
|
||||
|
||||
tasks:
|
||||
# your-tasks
|
||||
# - your-tasks
|
||||
|
||||
triggers:
|
||||
- id: webhook
|
||||
type: io.kestra.core.models.triggers.types.Webhook
|
||||
key: # your-secret-key, keep this secret!
|
||||
key: # your-secret-key, keep this secret!
|
||||
|
Loading…
Reference in New Issue
Block a user