From 64c974180c768e915b41c7bb14e486930ed4662e Mon Sep 17 00:00:00 2001 From: Kevin Cameron Grismore Date: Wed, 6 Nov 2024 09:12:41 -0600 Subject: [PATCH 1/3] changes to project 1 --- project_1/flow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/project_1/flow.py b/project_1/flow.py index fd4c9f9..db0354a 100644 --- a/project_1/flow.py +++ b/project_1/flow.py @@ -4,6 +4,7 @@ @flow(log_prints=True) def hello(): print("Hello from Project 1! :)") + print("new addition to project 1") if __name__ == "__main__": From dafaed69f66dfb3296ebc3a219a01b39b0108e05 Mon Sep 17 00:00:00 2001 From: Kevin Cameron Grismore Date: Wed, 6 Nov 2024 09:24:31 -0600 Subject: [PATCH 2/3] add synchronize --- .github/workflows/project-1-deploy.yaml | 1 + .github/workflows/project-2-deploy.yaml | 1 + README.md | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/project-1-deploy.yaml b/.github/workflows/project-1-deploy.yaml index 45f0da0..974c6a2 100644 --- a/.github/workflows/project-1-deploy.yaml +++ b/.github/workflows/project-1-deploy.yaml @@ -7,6 +7,7 @@ on: pull_request: types: - opened + - synchronize paths: - "project_1/**" push: diff --git a/.github/workflows/project-2-deploy.yaml b/.github/workflows/project-2-deploy.yaml index e8ac46b..93e9eaf 100644 --- a/.github/workflows/project-2-deploy.yaml +++ b/.github/workflows/project-2-deploy.yaml @@ -7,6 +7,7 @@ on: pull_request: types: - opened + - synchronize paths: - "project_2/**" push: diff --git a/README.md b/README.md index e924af6..3a4e8d0 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ This is an advanced example for managing CI/CD across multiple Prefect workspace The GitHub Actions workflows in this repo: - create mirrored deployments across staging and prod workspaces - which workspace flows are deployed to is determined by the branch that changes happen on: - - a pull request on any branch updates deployments in the staging workspace - - a merge to `main` updates deployments in the prod workspace + - opening a pull request on any branch, as well as commits to an open pull request, will update deployments in the staging workspace + - a merge to `main` will update deployments in the prod workspace - build and push docker images that do _not_ contain flow code, and are tagged like `:-` to tie the code version and branch/env to image versions - cache both docker image layers and pip dependencies for ultra fast rebuilds - push code to S3 (via the `push` step of each `prefect.yaml`), where: From f001285f66127d28d97658014063f79676b3e5c8 Mon Sep 17 00:00:00 2001 From: Kevin Cameron Grismore Date: Wed, 6 Nov 2024 09:27:16 -0600 Subject: [PATCH 3/3] update prefect in project 1 --- project_1/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_1/requirements.txt b/project_1/requirements.txt index 743f049..53aa233 100644 --- a/project_1/requirements.txt +++ b/project_1/requirements.txt @@ -1,2 +1,2 @@ -prefect==2.16.1 +prefect==3.1.0 prefect-aws \ No newline at end of file