pipeline runner
All checks were successful
Image builder / build (push) Successful in 2m19s

This commit is contained in:
Tanguy Herbron 2023-08-07 11:04:54 +02:00
parent 35521602c6
commit 487a5b48ae

View File

@ -3,6 +3,15 @@
echo $CONTAINER_TOKEN | docker login git.halis.io -u $GITHUB_ACTOR --password-stdin echo $CONTAINER_TOKEN | docker login git.halis.io -u $GITHUB_ACTOR --password-stdin
IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-) IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)
docker pull ubuntu:latest for d in ./images/*
docker tag ubuntu:latest $IMAGE_NAME:shell-auto-build do
docker push $IMAGE_NAME:shell-auto-build echo "Loading $d"
for i in $d/*
do
echo "Building $i"
DISTRO=$(echo $i | cut -d '/' -f 3)
docker build -f $i . -t $IMAGE_NAME:$DISTRO
docker push $IMAGE_NAME:$DISTRO
done
done