mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-10-05 01:43:01 +02:00
fix: remove trailing whitespace
This commit is contained in:
parent
4bf1d0e7fd
commit
e6be8c222d
@ -1,6 +1,6 @@
|
||||
# Kestra Docker File Build Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# Build a Docker image from a File.
|
||||
#
|
||||
|
||||
@ -29,7 +29,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,6 +1,6 @@
|
||||
# Kestra Docker Git Build Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# Build a Docker image from a Git repository.
|
||||
#
|
||||
|
||||
@ -20,7 +20,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,8 +1,8 @@
|
||||
# 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
|
||||
|
@ -1,8 +1,8 @@
|
||||
# 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.
|
||||
|
@ -1,8 +1,8 @@
|
||||
# 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
|
||||
@ -15,10 +15,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,7 +1,7 @@
|
||||
# Kestra Variable Template
|
||||
# ---
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
id: variables
|
||||
|
@ -1,8 +1,8 @@
|
||||
# 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user