-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprefect.yaml
54 lines (50 loc) · 1.48 KB
/
prefect.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: prefect-start
prefect-version: 3.1.13
build:
- prefect.deployments.steps.run_shell_script:
id: get_commit_hash
script: git rev-parse --short HEAD
stream_output: false
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
image_name: "{{ prefect.variables.flow_image }}"
tag: latest
# TODO: is this tag pushed to ECR?
additional_tags:
- "{{ get_commit_hash.stdout }}"
dockerfile: Dockerfile
platform: linux/amd64
push:
- prefect_docker.deployments.steps.push_docker_image:
image_name: "{{ build_image.image_name }}"
tag: "{{ build_image.tag }}"
pull:
- prefect.deployments.steps.set_working_directory:
directory: /opt/prefect
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: hello-ecs
entrypoint: flows/hello.py:hello
version: "{{ get_commit_hash.stdout }}"
tags:
- "{{ get_commit_hash.stdout }}"
description: A simple flow that says hello.
schedules: null
parameters: {}
work_pool:
name: ecs
job_variables:
image: "{{ build_image.image }}"
- name: jetstream-ecs
entrypoint: flows/jetstream.py:source_jetstream
version: "{{ get_commit_hash.stdout }}"
tags:
- "{{ get_commit_hash.stdout }}"
description: Reads from the BlueSky Jetstream via websocket and stores the data in object storage.
schedules:
- cron: "30 * * * *"
parameters: {}
work_pool:
name: ecs
job_variables:
image: "{{ build_image.image }}"