mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 22:31:53 +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" .
|