-
Notifications
You must be signed in to change notification settings - Fork 1
/
prefect.yaml.jinja
26 lines (23 loc) · 930 Bytes
/
prefect.yaml.jinja
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
# File for configuring project / deployment build, push and pull steps
# Generic metadata about this project
name: {{ project_name }}
prefect-version: 2.10.11
{% if deployment_infrastructure != 'Process' -%}
build:
# If you have any need for buildkit you will need to build your docker image in CI/CD instead of here.
- prefect_docker.projects.steps.build_docker_image:
requires: prefect-docker>=0.2.0
image_name: {{ docker_registry }}/{{ project_name }}
tag: latest
dockerfile: Dockerfile
push: true
{% else -%}
build: null
{% endif %}
push: null
# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect.projects.steps.git_clone_project:
repository: https://github.com/{{ github_repo }}.git
branch: main
access_token: {% raw %}'{{ prefect.blocks.secret.github-access-token }}'{% endraw %} # TODO: Create this secret block in Prefect Cloud