Skip to content

Commit

Permalink
px4-firmware docker image json update
Browse files Browse the repository at this point in the history
update container entrypoint to include full commit-id
into px4_firmware_sha entry in json file
  • Loading branch information
TimoSairiala authored and jnippula committed Aug 23, 2024
1 parent 173baf4 commit f2ac80d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/px_uploader.entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function generate_metadata() {
saluki_file_info=$(cat ${SALUKI_FILE_INFO_JSON} |
jq -c '.files[] | select (.filename | contains("'${px4_filename}'")) |
.filename = "'${px4_bin_filename}'" |
.px4_firmware_sha = "'${px4_sha}'" |
.type = "px4-bin"')
echo ${saluki_file_info} > ${validation_file}

Expand Down Expand Up @@ -75,6 +76,9 @@ if [ -n "$PX4_EXPORT_DIR" ]; then
rm ${TEMP_JSON}
fi

# px4 sha from the original json file
px4_sha=$(cat ${SALUKI_FILE_INFO_JSON} | jq -r '.px4_firmware_sha')

# find all px4 files in the firmware directory
for px4_file in /firmware/*.px4; do
extract_bin_from_px4 $px4_file $PX4_EXPORT_DIR
Expand Down

0 comments on commit f2ac80d

Please sign in to comment.