Skip to content
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

make docker build optinal from release workflow #399

Conversation

v9n
Copy link
Member

@v9n v9n commented Aug 2, 2023

Address this OIP #394

secrets:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event.inputs.draft == 'true'
Copy link
Member Author

Choose a reason for hiding this comment

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

@chrisli30 I extract into a standalone job so we can run it separately, but at the same time I run this optinally so we don't need to remember to run 2 jobs.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm I think we can remove it from this Release script, because the Docker publish job doesn’t need to run until the very end of the release, and as you said, the image is optional when upgrading Turing Network. The two jobs are not supposed to run simultaneously and have different priorities.

@v9n v9n requested review from chrisli30 and imstar15 August 2, 2023 17:25
@@ -6,6 +6,10 @@ on:
tag:
description: Tag for release
required: true
draft:
description: draf release will not make the final image and skip some particular steps
Copy link
Member

Choose a reason for hiding this comment

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

darf release? 😅

skip some particular steps is vauge. Let’s avoid wordings like this and explain the most important things here.

Is it will not build and publish a Docker image on Dockerhub?

secrets:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event.inputs.draft == 'true'
Copy link
Member

Choose a reason for hiding this comment

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

Hmm I think we can remove it from this Release script, because the Docker publish job doesn’t need to run until the very end of the release, and as you said, the image is optional when upgrading Turing Network. The two jobs are not supposed to run simultaneously and have different priorities.

@v9n
Copy link
Member Author

v9n commented Aug 3, 2023

@chrisli30 can you review again? i just completely separate it.

Copy link
Member

@chrisli30 chrisli30 left a comment

Choose a reason for hiding this comment

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

Great, looks good!

Copy link
Member

@imstar15 imstar15 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@v9n v9n merged commit 8658161 into master Aug 3, 2023
3 checks passed
@v9n v9n deleted the extract-docker-build-to-standalone-job-and-nmake-it-optional-when-release branch August 3, 2023 10:36
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.

3 participants