-
Notifications
You must be signed in to change notification settings - Fork 681
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 update-ray-setup
- Loading branch information
Showing
101 changed files
with
1,910 additions
and
1,082 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
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
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 | ||
|
@@ -76,11 +105,7 @@ jobs: | |
- name: Get Latest Version of component | ||
id: set_version | ||
run: | | ||
if [ ${{ matrix.component }} = "flytecopilot" ]; then | ||
echo ::set-output name=version::$(yq eval '.configmap.copilot.plugins.k8s.co-pilot.image' charts/flyte-core/values.yaml | cut -d ":" -f 2 ) | ||
else | ||
echo ::set-output name=version::$(yq eval '.${{ matrix.component }}.image.tag' charts/flyte-core/values.yaml) | ||
fi | ||
echo ::set-output name=version::$(yq eval '.${{ matrix.component }}.image.tag' charts/flyte-core/values.yaml) | ||
shell: bash | ||
|
||
- name: Login to GitHub Container Registry | ||
|
@@ -92,14 +117,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 +144,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 +157,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,7 +167,7 @@ jobs: | |
|
||
- name: Prepare Flyte Release | ||
env: | ||
VERSION: ${{ needs.bump-version.outputs.version }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
run: | | ||
make prepare_artifacts | ||
git stash | ||
|
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
Oops, something went wrong.