-
Notifications
You must be signed in to change notification settings - Fork 0
Feature #3 image info stamping and integrate deployment script #4
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
Open
michael545
wants to merge
19
commits into
master
Choose a base branch
from
feature-#3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds a build hook to create /etc/image_info.txt. Updates README to document the -o flag for custom image naming.
Adds a build hook to create /etc/image_info.txt. Updates README to document the -o flag for custom image naming.
…ious working directory before starting a new build. This prevents errors caused by leftover artifacts from a prior failed run. - **Ensure /boot/firmware Exists:** The ubuntu24-ros2-pi5 profile now explicitly creates the /boot/firmware directory, resolving a genimage failure where it expected this directory to exist. - **Correct Artifact Deployment:** The post-image.sh script has been fixed to correctly copy all build artifacts (both .img and .sbom files) to the deployment directory.
…ious working directory before starting a new build. This prevents errors caused by leftover artifacts from a prior failed run. - **Ensure /boot/firmware Exists:** The ubuntu24-ros2-pi5 profile now explicitly creates the /boot/firmware directory, resolving a genimage failure where it expected this directory to exist. - **Correct Artifact Deployment:** The post-image.sh script has been fixed to correctly copy all build artifacts (both .img and .sbom files) to the deployment directory.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
script that embeds build information (name, version, date) directly into the final image for better traceability.
An update to the DigitalOcean deployment script to make it integrated with the main build configuration.
New Image Info Script [customize90-image-info]
This script runs during the build process to create /etc/image_info.txt inside the final image.
It populates this file with the image name, version, and build date, reading the values from the standard IGconf_* build variables.
We will get signature on every device for easy identification.
Deployment Script [digital-ocean.sh]
The script is no longer hardcoded to a single image name.
It now reads the image name and path from the same IGconf_* variables used by the build system.
How to use:
Create a options File: test.options
image_name="test-image-for-devops" image_version="1.0.0"
Export the build variables to be acessible to the deployment scrip, should be added to the end of build.sh
export IGconf_sys_deploydir="deploy" export IGconf_image_name="test-image-for-devops" export IGconf_image_suffix="img"
./build.sh -c config/raspbian-bookworm-v7-apt.cfg -o test.options