From 4c4e9388f9abd2462e9681f1446ebca077a09703 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 7 Aug 2023 11:09:54 +0200 Subject: [PATCH] pipeline runner --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index e608188..ee30abf 100755 --- a/build.sh +++ b/build.sh @@ -10,8 +10,9 @@ do do echo "Building $i" DISTRO=$(echo $i | cut -d '/' -f 3) + VERSION=$(echo $i | cut -d '/' -f 4 | cut -d '.' -f2-) - docker build -f $i . -t $IMAGE_NAME:$DISTRO - docker push $IMAGE_NAME:$DISTRO + docker build -f $i . -t $IMAGE_NAME:$DISTRO$VERSION + docker push $IMAGE_NAME:$DISTRO$VERSION done done