pipeline runner
This commit is contained in:
parent
487a5b48ae
commit
4c4e9388f9
5
build.sh
5
build.sh
@ -10,8 +10,9 @@ do
|
|||||||
do
|
do
|
||||||
echo "Building $i"
|
echo "Building $i"
|
||||||
DISTRO=$(echo $i | cut -d '/' -f 3)
|
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 build -f $i . -t $IMAGE_NAME:$DISTRO$VERSION
|
||||||
docker push $IMAGE_NAME:$DISTRO
|
docker push $IMAGE_NAME:$DISTRO$VERSION
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user