-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
prefect deploy
action to use Prefect version 3 (#54)
* 3dot0 (#53) * remove all refs to prefect 2 * remove unneccessary bash code --------- Co-authored-by: Jimi Dodd-o <[email protected]> Co-authored-by: jamie zieziula <[email protected]>
- Loading branch information
1 parent
2d464ac
commit 84a20bc
Showing
17 changed files
with
55 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: "monthly" | ||
interval: monthly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
comments: | ||
min-spaces-from-content: 1 | ||
document-start: disable | ||
line-length: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM --platform=linux/amd64 prefecthq/prefect:2-latest | ||
FROM --platform=linux/amd64 prefecthq/prefect:3-latest | ||
|
||
COPY ./examples/docker/requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import json | ||
|
||
import requests | ||
from prefect import flow | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,28 @@ | ||
# File for configuring project / deployment build, push and pull steps | ||
|
||
# Generic metadata about this project | ||
name: docker | ||
prefect-version: 2.11.0 | ||
prefect-version: 3.0.0 | ||
|
||
# build section allows you to manage and build docker images | ||
build: | ||
- prefect_docker.projects.steps.build_docker_image: | ||
requires: prefect-docker>0.1.0 | ||
- prefect_docker.deployments.steps.build_docker_image: | ||
requires: prefect-docker>0.6.0 | ||
image_name: EXAMPLE_IMAGE_REGISTRY | ||
tag: latest | ||
dockerfile: auto | ||
|
||
# push section allows you to manage if | ||
# and how this project is uploaded to remote locations | ||
push: null | ||
|
||
# pull section allows you to provide instructions | ||
# for cloning this project in remote locations | ||
pull: | ||
- prefect.projects.steps.git_clone_project: | ||
- prefect.deployments.steps.git_clone: | ||
repository: [email protected]:PrefectHQ/actions-prefect-deploy.git | ||
branch: main | ||
access_token: "{{ prefect.blocks.secret.docker-github-pat }}" | ||
|
||
deployments: | ||
- name: Docker | ||
description: null | ||
description: An example Prefect deployment | ||
entrypoint: ./flow.py:call_api | ||
flow_name: null | ||
parameters: {} | ||
schedule: null | ||
schedule: {} | ||
work_pool: | ||
job_variables: | ||
image: prefecthq/prefect:2-latest | ||
image: prefecthq/prefect:3-latest | ||
name: docker-pool | ||
work_queue_name: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
prefect==2.16.5 | ||
prefect==3.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import json | ||
|
||
import requests | ||
from prefect import flow | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
prefect==2.16.5 | ||
prefect==3.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import json | ||
|
||
import requests | ||
from prefect import flow | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
prefect==2.16.5 | ||
prefect==3.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,34 @@ | ||
# File for configuring project / deployment build, push and pull steps | ||
|
||
# Generic metadata about this project | ||
name: multi-deployment | ||
prefect-version: 2.11.0 | ||
prefect-version: 3.0.0 | ||
|
||
# build section allows you to manage and build docker images | ||
build: null | ||
|
||
# push section allows you to manage if | ||
# and how this project is uploaded to remote locations | ||
push: null | ||
|
||
# pull section allows you to provide instructions | ||
# for cloning this project in remote locations | ||
|
||
pull: | ||
- prefect.projects.steps.git_clone_project: | ||
- prefect.deployments.steps.git_clone: | ||
repository: [email protected]:PrefectHQ/actions-prefect-deploy.git | ||
branch: main | ||
access_token: "{{ prefect.blocks.secret.simple-github-pat }}" | ||
|
||
deployments: | ||
- name: Simple_Deployment_1 | ||
description: null | ||
description: Example deployment 1 | ||
entrypoint: ./deployment-1/flow.py:call_api | ||
flow_name: null | ||
parameters: {} | ||
schedule: null | ||
tags: [] | ||
version: null | ||
schedule: {} | ||
work_pool: | ||
job_variables: | ||
image: prefecthq/prefect:2-latest | ||
image: prefecthq/prefect:3-latest | ||
name: simple-pool | ||
work_queue_name: null | ||
|
||
- name: Simple_Deployment_2 | ||
description: null | ||
description: Example deployment 2 | ||
entrypoint: ./deployment-2/flow.py:call_api | ||
flow_name: null | ||
parameters: {} | ||
schedule: null | ||
tags: [] | ||
version: null | ||
schedule: {} | ||
work_pool: | ||
job_variables: | ||
image: prefecthq/prefect:2-latest | ||
image: prefecthq/prefect:3-latest | ||
name: simple-pool | ||
work_queue_name: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import json | ||
|
||
import requests | ||
from prefect import flow | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,23 @@ | ||
# File for configuring project / deployment build, push and pull steps | ||
|
||
# Generic metadata about this project | ||
name: simple | ||
prefect-version: 2.11.0 | ||
prefect-version: 3.0.0 | ||
|
||
# build section allows you to manage and build docker images | ||
build: null | ||
|
||
# push section allows you to manage if | ||
# and how this project is uploaded to remote locations | ||
push: null | ||
|
||
# pull section allows you to provide instructions | ||
# for cloning this project in remote locations | ||
pull: | ||
- prefect.projects.steps.git_clone_project: | ||
- prefect.deployments.steps.git_clone: | ||
repository: [email protected]:PrefectHQ/actions-prefect-deploy.git | ||
branch: main | ||
access_token: "{{ prefect.blocks.secret.simple-github-pat }}" | ||
|
||
deployments: | ||
- name: Simple | ||
description: null | ||
description: A simple example | ||
entrypoint: flow.py:call_api | ||
flow_name: null | ||
parameters: {} | ||
schedule: null | ||
tags: [] | ||
version: null | ||
schedule: {} | ||
work_pool: | ||
job_variables: | ||
image: prefecthq/prefect:2-latest | ||
image: prefecthq/prefect:3-latest | ||
name: simple-pool | ||
work_queue_name: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
prefect==2.16.5 | ||
prefect==3.* |