-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstep.yaml
More file actions
36 lines (31 loc) · 826 Bytes
/
step.yaml
File metadata and controls
36 lines (31 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: integration/v1
kind: Step
name: query
version: 1
summary: Execute a Postgres query
description: |
This step executes a query against a Postgres database. The
results will be set as an output.
build:
apiVersion: build/v1
kind: Docker
publish:
repository: relaysh/postgres-step-query
schemas:
spec:
source: file
file: spec.schema.json
outputs:
source: file
file: outputs.schema.json
examples:
- summary: Query a Postgres database
content:
apiVersion: v1
kind: Step
name: postgres-query
image: relaysh/postgres-step-query
spec:
connection:
url: postgres://my-postgres-host.my-domain.com:5432/my_database?sslmode=disable
statement: "SELECT name, email_address, phone_number FROM users WHERE created_at BETWEEN '2020-01-01' AND '2020-06-01'"