-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into flyte-binary-updates
- Loading branch information
Showing
443 changed files
with
62,157 additions
and
8,664 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,38 +1,51 @@ | ||
<!-- | ||
Thank you for sending the PR! | ||
Please fill the applicable details below | ||
Happy contributing! | ||
--> | ||
|
||
## Tracking issue | ||
_https://github.com/flyteorg/flyte/issues/<number>_ | ||
|
||
<!-- If your PR fixes an open issue, use `Closes #999` to link your PR with the issue. #999 stands for the issue number you are fixing --> | ||
|
||
<!-- Remove this section if not applicable --> | ||
|
||
<!-- Example: Closes #31 --> | ||
|
||
## Describe your changes | ||
## Why are the changes needed? | ||
|
||
<!-- | ||
Please clarify why the changes are needed. For instance, | ||
1. If you propose a new API, clarify the use case for a new API. | ||
2. If you fix a bug, you can clarify why it is a bug. | ||
--> | ||
|
||
## What changes were proposed in this pull request? | ||
|
||
<!-- | ||
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. | ||
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below. | ||
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers. | ||
2. If there is design documentation, please add the link. | ||
--> | ||
|
||
<!-- List all the proposed changes in your PR --> | ||
## How was this patch tested? | ||
|
||
<!-- Mark all the applicable boxes. To mark the box as done follow the following conventions --> | ||
<!-- | ||
[x] - Correct; marked as done | ||
[X] - Correct; marked as done | ||
[ ] - Not correct; marked as **not** done | ||
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible. | ||
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. | ||
If tests were not added, please describe why they were not added and/or why it was difficult to add. | ||
--> | ||
|
||
### Setup process | ||
|
||
### Screenshots | ||
|
||
## Check all the applicable boxes <!-- Follow the above conventions to check the box --> | ||
|
||
- [ ] I updated the documentation accordingly. | ||
- [ ] All new and existing tests passed. | ||
- [ ] All commits are signed-off. | ||
|
||
## Screenshots | ||
## Related PRs | ||
|
||
<!-- Add all the screenshots which support your changes --> | ||
<!-- Add related pull requests for reviewers to check --> | ||
|
||
## Note to reviewers | ||
## Docs link | ||
|
||
<!-- Add notes to reviewers if applicable --> | ||
<!-- Add documentation link built by CI jobs here, and specify the changed place --> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,29 +7,57 @@ on: | |
required: true | ||
|
||
jobs: | ||
bump-version: | ||
name: bump-version | ||
generate-tags: | ||
name: Generate git tags | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.bump-version.outputs.tag }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
fetch-depth: '0' | ||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.FLYTE_BOT_PAT }} | ||
script: | | ||
github.rest.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `refs/tags/${{ github.event.inputs.version }}`, | ||
sha: context.sha | ||
}) | ||
const components = [ | ||
"datacatalog", | ||
"flyteadmin", | ||
"flytecopilot", | ||
"flyteidl", | ||
"flyteplugins", | ||
"flytepropeller", | ||
"flytestdlib", | ||
]; | ||
for (const c of components) { | ||
github.rest.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `refs/tags/${c}/${{ github.event.inputs.version }}`, | ||
sha: context.sha | ||
}) | ||
} | ||
- name: Bump version and push tag | ||
id: bump-version | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} | ||
WITH_V: true | ||
CUSTOM_TAG: ${{ github.event.inputs.version }} | ||
RELEASE_BRANCHES: master | ||
build-docker-images: | ||
needs: | ||
- generate-tags | ||
uses: ./.github/workflows/publish-images.yml | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
push: true | ||
secrets: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} | ||
FLYTE_BOT_USERNAME: ${{ secrets.FLYTE_BOT_USERNAME }} | ||
|
||
publish-flyte-binary-image: | ||
name: Publish flyte binary image for the release version | ||
runs-on: ubuntu-latest | ||
needs: [bump-version] | ||
needs: | ||
- generate-tags | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -45,24 +73,25 @@ jobs: | |
|
||
- name: Tag image to release version | ||
run: | | ||
for release in latest ${{ needs.bump-version.outputs.version }}; do | ||
for release in latest ${{ github.event.inputs.version }}; do | ||
docker buildx imagetools create --tag "ghcr.io/${{ github.repository_owner }}/flyte-binary-release:${release}" "ghcr.io/${{ github.repository_owner }}/flyte-binary:sha-${{ github.sha }}" | ||
done | ||
publish-flyte-component-image: | ||
name: Publish flyte component image for the release version | ||
runs-on: ubuntu-latest | ||
needs: [bump-version] | ||
needs: | ||
- build-docker-images | ||
strategy: | ||
matrix: | ||
component: | ||
[ | ||
datacatalog, | ||
flyteadmin, | ||
flyteconsole, | ||
flytecopilot, | ||
flytepropeller, | ||
flyteadmin, | ||
datacatalog, | ||
flytescheduler, | ||
flytecopilot, | ||
] | ||
steps: | ||
- name: Checkout | ||
|
@@ -92,14 +121,15 @@ jobs: | |
|
||
- name: Tag Image to release version | ||
run: | | ||
for release in latest ${{ needs.bump-version.outputs.version }}; do | ||
for release in latest ${{ github.event.inputs.version }}; do | ||
docker buildx imagetools create --tag "ghcr.io/${{ github.repository_owner }}/${{ matrix.component }}-release:${release}" "ghcr.io/${{ github.repository_owner }}/${{ matrix.component }}:${{ steps.set_version.outputs.version }}" | ||
done | ||
helm-release: | ||
name: Flyte helm release | ||
runs-on: ubuntu-latest | ||
needs: [bump-version] | ||
needs: | ||
- build-docker-images | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -118,7 +148,7 @@ jobs: | |
git config user.email "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | ||
- name: Prepare Flyte Helm Release | ||
env: | ||
VERSION: ${{ needs.bump-version.outputs.version }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
REPOSITORY: "https://flyteorg.github.io/flyte" | ||
run: | | ||
make prepare_artifacts | ||
|
@@ -131,7 +161,8 @@ jobs: | |
manifest-release: | ||
name: Flyte manifest release | ||
runs-on: ubuntu-latest | ||
needs: [bump-version] | ||
needs: | ||
- build-docker-images | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -140,13 +171,13 @@ jobs: | |
|
||
- name: Prepare Flyte Release | ||
env: | ||
VERSION: ${{ needs.bump-version.outputs.version }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
run: | | ||
make prepare_artifacts | ||
git stash | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
version: latest | ||
args: release --rm-dist --release-notes=CHANGELOG/CHANGELOG-${{ github.event.inputs.version }}.md | ||
|
Oops, something went wrong.