-
Notifications
You must be signed in to change notification settings - Fork 0
/
prefect.yaml
64 lines (58 loc) · 2.07 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
55
56
57
58
59
60
61
62
63
64
# Welcome to your prefect.yaml file! You can use this file for storing and managing
# configuration for deploying your flows. We recommend committing this file to source
# control along with your flow code.
# Generic metadata about this project
name: prefect-select-actions
prefect-version: 2.14.3
actions:
build:
build_image_stg:
- 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
requires: prefect-docker
image_name: kevingrismoreprefect/github-actions-demo-stg
tag: "{{ get-commit-hash.stdout }}"
dockerfile: Dockerfile
build_image_prod:
- 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
requires: prefect-docker
image_name: kevingrismoreprefect/github-actions-demo-prod
tag: "{{ get-commit-hash.stdout }}"
dockerfile: Dockerfile
push:
push_image:
- prefect_docker.deployments.steps.push_docker_image:
requires: prefect-docker
image_name: "{{ build-image.image_name }}"
tag: "{{ build-image.tag }}"
pull:
staging:
- prefect.deployments.steps.git_clone:
repository: [email protected]:kevingrismore/prefect-select-actions.git
branch: staging
credentials: "{{ prefect.blocks.github-credentials.my-block-name }}"
production:
- prefect.deployments.steps.git_clone:
repository: [email protected]:kevingrismore/prefect-select-actions.git
branch: main
credentials: "{{ prefect.blocks.github-credentials.my-block-name }}"
build: null
push: null
pull: null
deployments:
- name: my-deployment
entrypoint: flows/my_flow.py:my_flow
parameters:
name: Kevin
work_pool:
name: demo-pool
work_queue_name: default