Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Feat: deploy for pre-release or release #329
Feat: deploy for pre-release or release #329
Changes from 7 commits
00d39d0
ade17c6
d613425
9218a01
07a2e2e
1ec8099
f36ca19
659c5c8
0586d73
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
always()
is needed here because even iftest
didn't run, we still want this to run.!cancelled()
is needed because if the whole workflow was cancelled, we don't want this to run.(github.event_name != 'release' || needs.test.result == 'success')
is needed because iftest
did run, we only want this to run iftest
succeeded.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not following the need for
always()
-- isn't that like sayingtrue AND x
which evaluates to whateverx
is?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are right that it is redundant! I tried it out myself to verify.
Removed it in 659c5c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we are in an interim state of still doing merge-based deployments, the first two values in this list will be the same... I'm not sure if the
docker/build-push-action@v5
action will allow that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's not a really easy way to test this without just merging this PR and trying a merge-based deployment.
If we really do want to test before merging though, it could be set up in a smaller experimental repo. It just takes some time to get it all set up.