Updating docker image tags with version number (#372)

This commit is contained in:
Udith Indrakantha
2022-11-16 12:18:26 +05:30
committed by GitHub
parent 42cf454396
commit 0c8c5aa0e3
6 changed files with 14 additions and 10 deletions

View File

@@ -12,12 +12,12 @@ cp $hpcoredir/build/hpcore $hpcoredir/test/bin/{hpfs,hpws,libblake3.so} $tmp/
strip $tmp/hpcore
# Remove the revision component from hp version to make up the image version.
# hpversion=$($tmp/hpcore version | head -n 1)
# imgversion=$(echo "${hpversion%.*}")
imgversion="latest"
hpversion=$($tmp/hpcore version | head -n 1)
imgversion=$(echo "${hpversion}")
# imgversion="latest"
# Ubuntu base image
docker build -t $img:$imgversion-ubt.20.04 -f ./$basefile $tmp/
docker build -t $img:$imgversion-ubt.20.04 -t $img:latest-ubt.20.04 -f ./$basefile $tmp/
rm -r $tmp/*
# NodeJs image
@@ -27,6 +27,6 @@ tar -xvJf $tmp/nodejs.tar.xz --strip-components=2 -C $tmp/ node-v16.14.0-linux-x
rm $tmp/nodejs.tar.xz
cp ./$njsfile $tmp/
sed -i "s/%ver%/$imgversion/g" $tmp/$njsfile
docker build -t $img:$imgversion-ubt.20.04-njs.16 -f $tmp/$njsfile $tmp
docker build -t $img:$imgversion-ubt.20.04-njs.16 -t $img:latest-ubt.20.04-njs.16 -f $tmp/$njsfile $tmp
rm -r $tmp