mirror of
https://github.com/stucki/docker-lineageos
synced 2024-12-19 17:12:29 -05:00
build: Always pull ubuntu image before starting Docker build
This commit is contained in:
parent
608ebb3ca4
commit
682e377f53
4
run.sh
4
run.sh
@ -20,6 +20,10 @@ if [ $? -ne 0 ]; then
|
||||
echo "docker command not found"
|
||||
exit $?
|
||||
elif [[ $FORCE_BUILD = 1 ]] || ! echo "$IMAGE_EXISTS" | grep -q "$TAG"; then
|
||||
# Pull Ubuntu image to be sure it's up to date
|
||||
echo "Fetching Docker \"ubuntu\" image..."
|
||||
docker pull ubuntu:14.04
|
||||
|
||||
echo "Building Docker image $REPOSITORY:$TAG..."
|
||||
docker build -t $REPOSITORY:$TAG .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user