mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 17:08:42 +00:00
7 lines
185 B
Plaintext
7 lines
185 B
Plaintext
|
#!/bin/sh
|
||
|
CLONE_ADDFLAG="-b $DOCKER_TAG"
|
||
|
if [ "$DOCKER_TAG" = "latest" ]; then
|
||
|
CLONE_ADDFLAG="-b master"
|
||
|
fi
|
||
|
docker build -t $IMAGE_NAME --build-arg CLONE_ADDFLAG="$CLONE_ADDFLAG" .
|