mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-03 13:45:01 -06:00
This is mostly just for specificity. In practice this will never do anything in CI because there will never be any cache to use, but if there was, we wouldn't want to use it
21 lines
500 B
Bash
Executable File
21 lines
500 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
GITREV="`git show -s --format='%h'`" || true
|
|
|
|
if [ "$GITHUB_REF_TYPE" = "tag" ]; then
|
|
TAG_NAME=$GITHUB_REF_NAME
|
|
elif [[ -n $GITREV ]]; then
|
|
TAG_NAME=$GITREV
|
|
else
|
|
TAG_NAME=unknown
|
|
fi
|
|
|
|
echo "Tag name is: $TAG_NAME"
|
|
|
|
docker build --no-cache -f docker/azahar-room/Dockerfile -t azahar-room:$TAG_NAME .
|
|
mkdir -p build
|
|
FILENAME="azahar-room-$TAG_NAME.dockerimage"
|
|
docker save azahar-room:$TAG_NAME > build/$FILENAME
|
|
|
|
echo "DOCKER_IMAGE_PATH=artifacts/$FILENAME" >> $GITHUB_ENV
|