-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix(ci): point to correct provenanced binary in heighliner image #1985
Conversation
WalkthroughThe recent update enhances the GitHub Actions workflow for Docker builds. It includes specifying a custom Dockerfile, adding additional binaries, setting build environment variables, and incorporating build tags. These improvements aim to streamline the Docker build process, making it more flexible and efficient. 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
d87a73c
to
9bd384e
Compare
9bd384e
to
ccdc600
Compare
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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/docker.yml (1 hunks)
Additional comments not posted (3)
.github/workflows/docker.yml (3)
64-64
: Correctly specifies the location of theprovenanced
binary, addressing the issue of the binary not being found in the image.
59-59
: Ensure the 'cosmos' Dockerfile exists and is correctly configured for building theprovenanced
binary.Verification successful
The 'cosmos' Dockerfile exists and is correctly configured for building the
provenanced
binary.
- The Dockerfile includes multiple
FROM
statements for different build stages and architectures.- It contains
COPY
commands to ensure theprovenanced
binary is included in the final image.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the existence and content of the 'cosmos' Dockerfile. # Test: Search for the Dockerfile and display its content. Expect: Dockerfile exists and contains relevant build instructions. fd Dockerfile --exec cat {} \; | grep -i "FROM"Length of output: 2503
66-68
: Ensure the specified build environment variables and tags are appropriate and up-to-date for building theprovenanced
binary.Verification successful
The build environment variables and tags specified in the workflow file are indeed referenced in the Makefile and documentation. This confirms that the settings are appropriate and up-to-date for building the
provenanced
binary.
WITH_LEDGER
: Enables/Disables building with Ledger hardware wallet support.BUILD_TAGS
: Any extra-tags
to supply to thego build
orgo install
invocations.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the appropriateness of build environment variables and tags. # Test: Check the project documentation or configuration files to confirm these settings. Expect: Settings are recommended and up-to-date. cat README.md | grep -i "build environment"Length of output: 45
Script:
#!/bin/bash # Description: Verify the appropriateness of build environment variables and tags. # Test: Check Dockerfiles for build environment variables and tags. fd Dockerfile | xargs cat | grep -iE 'WITH_LEDGER|WITH_CLEVELDB|BUILD_TAGS' # Test: Check Makefiles for build environment variables and tags. fd Makefile | xargs cat | grep -iE 'WITH_LEDGER|WITH_CLEVELDB|BUILD_TAGS' # Test: Check other documentation files for build environment variables and tags. fd .md | xargs cat | grep -iE 'WITH_LEDGER|WITH_CLEVELDB|BUILD_TAGS'Length of output: 1048
The
heighliner-build-action
makes it seem like theheighliner
repochains.yaml
is used as a default and overrides can be provided. In practice I was seeing a problem whereprovenanced
could not be found on the recently built image. This adds the fields that exist inchains.yaml
so this workflow itself can now be thought of as the canonical configuration rather than thechains.yaml
.Tests
docker run provenanceio/provenance@sha256:194ec608f295d753dd936ca6d12046ffb0308651735d66fc7fc594936f8de33e /bin/sh -c "provenanced init --chain-id testing -t network-1 ; provenanced start -t"
Summary by CodeRabbit