Commit c18618c7 authored by mh's avatar mh
Browse files

be more efficient on cloning and copy Dockerfile to an upstream suffixed one

parent 28051f38
#!/bin/bash -e
[ -d ./upstream ] && rm -rf ./upstream
git clone https://gitlab.com/gitlab-org/omnibus-gitlab.git upstream
git clone --depth 1 --no-single-branch https://gitlab.com/gitlab-org/omnibus-gitlab.git upstream
cd upstream
cur_git_branch=$(git rev-parse --abbrev-ref HEAD)
......@@ -39,13 +39,13 @@ else
fi
cd docker
cp -dR Dockerfile ../../
cp -dR Dockerfile ../../Dockerfile.upstream
cp -dR assets/* ../../assets/
cd ../..
echo $version > VERSION
git add Dockerfile* VERSION assets update_git.sh build.sh
git add Dockerfile.upstream Containerfile VERSION assets update_git.sh build.sh
if [ -z "$(git diff --name-only --cached)" ]; then
echo "Nothing to update"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment