-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added goreleaser for publishing menifest (#927)
* added goreleaser for publishing menifest Signed-off-by: yuvraj <[email protected]> * Rename release file name Signed-off-by: yuvraj <[email protected]> * Added script for artifacts Signed-off-by: yuvraj <[email protected]> * More changes Signed-off-by: yuvraj <[email protected]> * More changes Signed-off-by: yuvraj <[email protected]> * fix typo Signed-off-by: yuvraj <[email protected]> * minor changes Signed-off-by: yuvraj <[email protected]> Signed-off-by: Haytham Abuelfutuh <[email protected]>
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 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,40 @@ | ||
name: Create a flyte release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'version name. example v0.1.1' | ||
required: true | ||
|
||
jobs: | ||
goreleaser: | ||
name: Goreleaser | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.bump-version.outputs.tag }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- 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 | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
ref: ${{ github.event.inputs.version }} | ||
- name: build Release Menifest | ||
run: | | ||
make prepare_artifacts | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} |
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 |
---|---|---|
|
@@ -14,4 +14,5 @@ docs/_sources/ | |
docs/flytekit/flytekit.interfaces.html | ||
docs/searchindex.js | ||
docs/ | ||
release/ | ||
__pycache__/ |
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,14 @@ | ||
project_name: flyte | ||
builds: | ||
- skip: true | ||
release: | ||
github: | ||
owner: flyteorg | ||
name: flyte | ||
draft: false | ||
prerelease: auto | ||
discussion_category_name: General | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
disable: false | ||
extra_files: | ||
- glob: ./release/* |
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,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
for file in ./deployment/**/flyte_generated.yaml; do | ||
if [ -f "$file" ]; then | ||
result=${file/#"./deployment/"} | ||
result=${result/%"/flyte_generated.yaml"} | ||
cp $file "./release/flyte_${result}_manifest.yaml" | ||
fi | ||
done |