2023-08-07 08:38:16 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-08-07 08:45:14 +00:00
|
|
|
echo $CONTAINER_TOKEN | docker login git.halis.io -u $GITHUB_ACTOR --password-stdin
|
2023-08-07 08:49:37 +00:00
|
|
|
IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)
|
|
|
|
|
2023-08-07 09:04:54 +00:00
|
|
|
for d in ./images/*
|
|
|
|
do
|
|
|
|
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
|