-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release automation addedd for flyte definition (#835)
* wip: added script for release automation Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: added manual github workflow Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com> * wip: added release workflow Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com> * wip: fix e2e testcase Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com> * wip: small fixes Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com> * wip: revert version in kustomize Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com> * wip: revert kustomize changes Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com> * wip: added generated kustomize output Signed-off-by: yuvraj <evalsocket@gmail.com> * update latest version of component Signed-off-by: Yuvraj <yuvraj.yad001@gmail.com> * wip: added generated kustomize output Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: added message input in workflow Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: remove release automation from kustomize command Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: generate kustomize output Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: revert webhook and build kustomize output Signed-off-by: yuvraj <evalsocket@gmail.com> * updated release workflow Signed-off-by: yuvraj <evalsocket@gmail.com> * fix typo Signed-off-by: yuvraj <evalsocket@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
Showing
11 changed files
with
124 additions
and
65 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Publish flyte defination file | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-flyte-releases: | ||
name: Update Flyte components | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Build kustomize | ||
run: | | ||
make release_automation | ||
make kustomize | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.FLYTE_BOT_PAT }} | ||
commit-message: Update Flyte Components | ||
committer: Flyte-Bot <admin@flyte.org> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: true | ||
branch: flyte-bot-update-releases | ||
delete-branch: true | ||
title: 'Update Flyte components' | ||
body: | | ||
Updated flyte deployment | ||
- Updated GCP Flyte deployment | ||
- Updated EKS Flyte deployment | ||
- Updated Sandbox Flyte deployment | ||
- Updated TEST Flyte deployment | ||
- Auto-generated by [flyte-bot] | ||
labels: | | ||
kustomize | ||
team-reviewers: | | ||
owners | ||
maintainers | ||
draft: false |
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
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
FLYTEADMIN_TAG=$(curl --silent "https://api.github.com/repos/flyteorg/flyteadmin/releases/latest" | jq -r .tag_name) | ||
DATACATALOG_TAG=$(curl --silent "https://api.github.com/repos/flyteorg/datacatalog/releases/latest" | jq -r .tag_name) | ||
FLYTECONSOLE_TAG=$(curl --silent "https://api.github.com/repos/flyteorg/flyteconsole/releases/latest" | jq -r .tag_name) | ||
FLYTEPROPELLER_TAG=$(curl --silent "https://api.github.com/repos/flyteorg/flytepropeller/releases/latest" | jq -r .tag_name) | ||
|
||
grep -rlZ "newTag:[^P]*# FLYTEADMIN_TAG" ./kustomize/overlays | xargs -0 sed -i "s/newTag:[^P]*# FLYTEADMIN_TAG/newTag: ${FLYTEADMIN_TAG} # FLYTEADMIN_TAG/g" | ||
grep -rlZ "newTag:[^P]*# DATACATALOG_TAG" ./kustomize/overlays | xargs -0 sed -i "s/newTag:[^P]*# DATACATALOG_TAG/newTag: ${DATACATALOG_TAG} # DATACATALOG_TAG/g" | ||
grep -rlZ "newTag:[^P]*# FLYTECONSOLE_TAG" ./kustomize/overlays | xargs -0 sed -i "s/newTag:[^P]*# FLYTECONSOLE_TAG/newTag: ${FLYTECONSOLE_TAG} # FLYTECONSOLE_TAG/g" | ||
grep -rlZ "newTag:[^P]*# FLYTEPROPELLER_TAG" ./kustomize/overlays | xargs -0 sed -i "s/newTag:[^P]*# FLYTEPROPELLER_TAG/newTag: ${FLYTEPROPELLER_TAG} # FLYTEPROPELLER_TAG/g" |