-
Notifications
You must be signed in to change notification settings - Fork 294
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: build on network tags and manual dispatch #3905
feat: build on network tags and manual dispatch #3905
Conversation
📝 WalkthroughWalkthroughThe pull request introduces updates to the GitHub Actions workflow file Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
.github/workflows/docker-build-publish.yml (2)
16-17
: LGTM! Consider adding comments for clarity.The addition of
-arabica
and-mocha
tag patterns aligns well with the PR objectives, allowing for network-specific triggering of the Docker CI workflow. This change provides more granular control over the workflow execution.Consider adding a comment above these new patterns to explain their purpose, e.g.:
# Network-specific version tags - "v[0-9]+.[0-9]+.[0-9]+-arabica" - "v[0-9]+.[0-9]+.[0-9]+-mocha"This would improve readability and maintainability of the workflow file.
19-24
: LGTM! Consider adding input validation.The addition of the
workflow_dispatch
event with theref
input aligns perfectly with the PR objectives, allowing for manual triggering of the workflow with a specific reference. This enhances the workflow's flexibility and user control.Consider adding input validation for the
ref
parameter to ensure it matches expected patterns. You can use thepattern
property in the input definition. For example:inputs: ref: description: "The checkout reference (ie tag, branch, sha)" required: true type: string pattern: '^(v\d+\.\d+\.\d+(-\w+)?|[0-9a-f]{40}|[a-zA-Z0-9_.-]+)$'This pattern allows for version tags, full SHA hashes, and branch names, providing an additional layer of input validation.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- .github/workflows/docker-build-publish.yml (2 hunks)
🔇 Additional comments not posted (1)
.github/workflows/docker-build-publish.yml (1)
31-31
: LGTM! Verify compatibility with the new version.Updating the reusable Dockerfile pipeline version from v0.4.3 to v0.4.4 is a good practice to ensure the latest features and bug fixes are utilized. The update is consistently applied to both job definitions.
Please ensure that v0.4.4 of the reusable workflow is compatible with the current workflow and doesn't introduce any breaking changes. You can verify this by checking the changelog or release notes of the celestiaorg/.github repository.
To assist with this verification, you can run the following script:
Please review the output to ensure there are no breaking changes that could affect this workflow.
Also applies to: 40-40
✅ Verification successful
Verified: The update to v0.4.4 for the reusable Dockerfile pipeline is compatible and introduces no breaking changes.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Fetch the changelog or release notes for the reusable workflow # Fetch the latest release information gh release view v0.4.4 -R celestiaorg/.github # If the above doesn't provide enough information, you can also check the commit history echo "Commit history between v0.4.3 and v0.4.4:" gh release view v0.4.4 -R celestiaorg/.github --json body | jq -r '.body'Length of output: 1161
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.
thanks!
This PR add two features:
This would allow triggering the docker workflow on a tag that (such as the new arabica and mocha tags) that didn't trigger the workflow originally.
Ref: