mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Fix docker image tag updating
This commit is contained in:
parent
61fa1d1901
commit
be7c7d5624
@ -37,9 +37,9 @@ update_dep_version() {
|
|||||||
update_image_versions() {
|
update_image_versions() {
|
||||||
echo "Updating file $1"
|
echo "Updating file $1"
|
||||||
# Update the version of the development container
|
# Update the version of the development container
|
||||||
sed -i "s/asterinas\/asterinas:[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/asterinas\/asterinas:${new_version}/g" $1
|
sed -i "s/asterinas\/asterinas:[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\(-[[:digit:]]\+\)\?/asterinas\/asterinas:${new_version}/g" $1
|
||||||
# Update the test environment described in the OSDK manual
|
# Update the test environment described in the OSDK manual
|
||||||
sed -i "s/asterinas\/osdk:[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/asterinas\/osdk:${new_version}/g" $1
|
sed -i "s/asterinas\/osdk:[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\(-[[:digit:]]\+\)\?/asterinas\/osdk:${new_version}/g" $1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Print the help message
|
# Print the help message
|
||||||
@ -126,9 +126,17 @@ update_all_docker_version_refs() {
|
|||||||
update_image_versions ${DOCS_DIR}/src/kernel/intel_tdx.md
|
update_image_versions ${DOCS_DIR}/src/kernel/intel_tdx.md
|
||||||
|
|
||||||
# Update Docker image versions in workflows
|
# Update Docker image versions in workflows
|
||||||
WORKFLOWS=$(find "${ASTER_SRC_DIR}/.github/workflows/" -type f -name "*.yml")
|
ALL_WORKFLOWS=$(find "${ASTER_SRC_DIR}/.github/workflows/" -type f -name "*.yml")
|
||||||
for workflow in $WORKFLOWS; do
|
EXCLUDED_WORKFLOWS=(
|
||||||
update_image_versions $workflow
|
"${ASTER_SRC_DIR}/.github/workflows/push_git_tag.yml"
|
||||||
|
"${ASTER_SRC_DIR}/.github/workflows/check_licenses.yml"
|
||||||
|
"${ASTER_SRC_DIR}/.github/workflows/publish_docker_images.yml"
|
||||||
|
)
|
||||||
|
|
||||||
|
for workflow in $ALL_WORKFLOWS; do
|
||||||
|
if ! [[ " ${EXCLUDED_WORKFLOWS[*]} " =~ " ${workflow} " ]]; then
|
||||||
|
update_image_versions "$workflow"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Update Docker image versions in the documentation
|
# Update Docker image versions in the documentation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user