8000 ci: add create-release.yml by mrtrkmn · Pull Request #4759 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ci: add create-release.yml #4759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mrtrkmn
Copy link
Contributor
@mrtrkmn mrtrkmn commented May 6, 2022

Signed-off-by: mrtrkmn mr.turkmen@icloud.com

Goals:

Signed-off-by: mrtrkmn <mr.turkmen@icloud.com>
@JoanFM JoanFM requested a review from deepankarm May 7, 2022 07:20
@hanxiao
Copy link
Member
hanxiao commented May 9, 2022

@jina-ai/team-core Be careful on reviewing it: once merged and if it breaks, be expecting that the community won't be very responsive to fixing it.

@codecov
Copy link
codecov bot commented May 9, 2022

Codecov Report

Merging #4759 (a681cae) into master (c1f0ae5) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4759      +/-   ##
==========================================
- Coverage   87.71%   87.60%   -0.12%     
==========================================
  Files         119      119              
  Lines        8670     8809     +139     
==========================================
+ Hits         7605     7717     +112     
- Misses       1065     1092      +27     
Flag Coverage Δ
jina 87.60% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/serve/networking.py 87.21% <ø> (+0.23%) ⬆️
jina/__init__.py 65.88% <100.00%> (ø)
...deployments/config/k8slib/kubernetes_deployment.py 52.08% <0.00%> (-6.25%) ⬇️
jina/orchestrate/deployments/config/helper.py 94.73% <0.00%> (-3.51%) ⬇️
jina/serve/executors/decorators.py 97.22% <0.00%> (-1.12%) ⬇️
jina/orchestrate/flow/base.py 89.18% <0.00%> (-1.00%) ⬇️
...a/orchestrate/deployments/config/docker_compose.py 99.00% <0.00%> (-1.00%) ⬇️
jina/serve/executors/__init__.py 86.44% <0.00%> (-0.31%) ⬇️
jina/proto/jina_pb2.py 57.83% <0.00%> (-0.28%) ⬇️
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 01dc9da...a681cae. Read the comment docs.

Copy link
Contributor
@deepankarm deepankarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrtrkmn Thank you so much for the PR. Could you please address the comment?

Comment on lines 153 to 162
runs-on: ubuntu-latest
steps:
- uses: benc-uk/workflow-dispatch@v1
with:
workflow: Create Release
token: ${{ secrets.JINA_DEV_BOT }}
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "TAG"}'
env:
release_token: ${{ secrets.JINA_CORE_RELEASE_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We run Manual Docker Build during TAG / CD & MANUAL. But create-release should only be triggered during TAG. That logic is missing here.

Copy link
Contributor Author
@mrtrkmn mrtrkmn May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your review @deepankarm.

I thought that if statement would be enough to resolve it. Like

if: startsWith(github.ref, 'refs/tags/v')

I just wanted to be sure before pushing changes, what is your feedback on this ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since triggered_by is passed in the input event, you can check if: "${{ github.event.inputs.triggered_by }}" == "TAG". I'm not very sure of the syntax, please validate it before pushing the commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the hint @deepankarm .
I have checked the syntax by creating a dummy repo in my account and validated it.
Also checked through Github documentation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrtrkmn The PR looks good. I'll prefer merging it sometime next week though as this might have some follow up actions 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great !
I am looking forward to see / contribute more on follow up actions or other parts of the repo :)
Thanks a lot @deepankarm :)

@mrtrkmn mrtrkmn requested a review from deepankarm May 10, 2022 09:00
Copy link
Contributor
@deepankarm deepankarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrtrkmn We are merging your PR now and will handle the follow-up items, if any. Thank you so much.

@deepankarm deepankarm merged commit 1ec2655 into jina-ai:master May 24, 2022
hanxiao added a commit that referenced this pull request May 26, 2022
hanxiao added a commit that referenced this pull request May 26, 2022
steps:
- uses: benc-uk/workflow-dispatch@v1
if: ${{ inputs.triggered_by == 'TAG' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        if: github.events.inputs.triggered_by  == 'TAG'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish Github release after Docker / pypi push
4 participants
0