mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
intercept migration from versions < 8.0.0
This commit is contained in:
parent
cd548269dc
commit
fbad0c39c5
@ -999,6 +999,10 @@ GitLabHQ releases new versions on the 22nd of every month, bugfix releases immed
|
||||
|
||||
To upgrade to newer gitlab releases, simply follow this 4 step upgrade procedure.
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> Upgrading to `sameersbn/gitlab:8.3.2` from `sameersbn/gitlab:7.x.x` can cause issues. It is therefore required that you first upgrade to `sameersbn/gitlab:8.0.5-1` before upgrading to `sameersbn/gitlab:8.1.0` or higher.
|
||||
|
||||
- **Step 1**: Update the docker image.
|
||||
|
||||
```bash
|
||||
|
||||
@ -1103,6 +1103,19 @@ migrate_database() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ $(vercmp ${GITLAB_VERSION} 8.0.0) -gt 0 ]]; then
|
||||
if [[ $(vercmp ${CACHE_VERSION} 8.0.0) -lt 0 ]]; then
|
||||
echo
|
||||
echo "ABORT: "
|
||||
echo " Upgrading to GitLab ${GITLAB_VERSION} from ${CACHE_VERSION} is not recommended."
|
||||
echo " Please upgrade to version 8.0.5-1 before upgrading to 8.1.0 or higher."
|
||||
echo " Refer to https://git.io/vur4j for CI migration instructions."
|
||||
echo " Aborting for your own safety!"
|
||||
echo
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Migrating database..."
|
||||
exec_as_git bundle exec rake db:migrate >/dev/null
|
||||
exec_as_git echo "${GITLAB_VERSION}" > ${GITLAB_DATA_DIR}/tmp/VERSION
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user