Skip to content

Commit

Permalink
Merge pull request #13 from kevingrismore/feat/update-proj-1
Browse files Browse the repository at this point in the history
changes to project 1
  • Loading branch information
kevingrismore authored Nov 6, 2024
2 parents 6380bf5 + f001285 commit 84462eb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/project-1-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
types:
- opened
- synchronize
paths:
- "project_1/**"
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/project-2-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
types:
- opened
- synchronize
paths:
- "project_2/**"
push:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `:<commit-hash>-<environment>` 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:
Expand Down
1 change: 1 addition & 0 deletions project_1/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@flow(log_prints=True)
def hello():
print("Hello from Project 1! :)")
print("new addition to project 1")


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion project_1/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
prefect==2.16.1
prefect==3.1.0
prefect-aws

0 comments on commit 84462eb

Please sign in to comment.