mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
.github: fix version format in docker-runc
docker-runc ebuild has lines of runc versions with not only underscore (`_`) but also hyphen (`-`). So when we replace the runc version, we need to also care about versions with hyphen, for example, `1.0.0-rc10`.
This commit is contained in:
parent
e4c1f9b59a
commit
ee7960d64e
@ -28,6 +28,12 @@ runcEbuildNew="app-emulation/docker-runc/docker-runc-${VERSION_NEW}.ebuild"
|
||||
git mv ${runcEbuildOld} ${runcEbuildNew}
|
||||
sed -i "s/${VERSION_OLD}/${VERSION_NEW}/g" ${runcEbuildNew}
|
||||
|
||||
# docker-runc ebuild file has also lines of runc versions with '-' instead of '_', e.g. '1.0.0-rc10'
|
||||
VERSION_OLD_HYPHEN=${VERSION_OLD//_/-}
|
||||
VERSION_NEW_HYPHEN=${VERSION_NEW//_/-}
|
||||
|
||||
sed -i "s/${VERSION_OLD_HYPHEN}/${VERSION_NEW_HYPHEN}/g" ${runcEbuildNew}
|
||||
|
||||
# update also runc versions used by docker and containerd
|
||||
sed -i "s/docker-runc-${VERSION_OLD}/docker-runc-${VERSION_NEW}/g" app-emulation/docker/docker-9999.ebuild
|
||||
sed -i "s/docker-runc-${VERSION_OLD}/docker-runc-${VERSION_NEW}/g" app-emulation/containerd/containerd-9999.ebuild
|
||||
|
Loading…
Reference in New Issue
Block a user