-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update prefect deploy
action to use Prefect version 3
#54
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.* |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
housekeeping