mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-28 11:41:52 +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" .
|