diff --git a/Dockerfile b/Dockerfile index bf5da2345c8a543af60c51ca09f5c6efae5ea560..11b80ebf5297756cbd5db690e957352928be1f1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -ARG GITLAB_VERSION=v13.10.3-ubi8 +ARG GITLAB_VERSION=v13.11.0-ubi8 ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082 ARG BASE_IMAGE=gitlab/gitlab/gitlab-ruby -ARG BASE_TAG=13.10.3 +ARG BASE_TAG=13.11.0 ARG RUBY_IMAGE=${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} diff --git a/build-scripts/build.sh b/build-scripts/build.sh index f441d1e6bbd2028713fe23bc22d4737d2d88bf95..6828528886d1b726e0a34a142cc2b9a312ad8a77 100755 --- a/build-scripts/build.sh +++ b/build-scripts/build.sh @@ -4,7 +4,7 @@ set -euxo pipefail -TAG=${1:-13.10.3} +TAG=${1:-13.11.0} REPOSITORY=${2:-} DOCKER_OPTS=${DOCKER_OPTS:-""} diff --git a/hardening_manifest.yaml b/hardening_manifest.yaml index e1c940df6eee003a4c7a14e5180715f5ff9d8e97..485f4b87cdc65f20c26a2185ab38789dbd1bc69f 100644 --- a/hardening_manifest.yaml +++ b/hardening_manifest.yaml @@ -5,12 +5,12 @@ name: "gitlab/gitlab/gitlab-rails" # The most specific version should be the first tag and will be shown # on ironbank.dsop.io tags: - - "13.10.3" + - "13.11.0" - "latest" # Build args passed to Dockerfile ARGs args: BASE_IMAGE: "gitlab/gitlab/gitlab-ruby" - BASE_TAG: "13.10.3" + BASE_TAG: "13.11.0" # Docker image labels labels: org.opencontainers.image.title: "Gitlab Rails" @@ -22,7 +22,7 @@ labels: org.opencontainers.image.url: "https://about.gitlab.com/" ## Name of the distributing entity, organization or individual org.opencontainers.image.vendor: "Gitlab" - org.opencontainers.image.version: "13.10.3" + org.opencontainers.image.version: "13.11.0" ## Keywords to help with search (ex. "cicd,gitops,golang") mil.dso.ironbank.image.keywords: "gitlab, git, gitops" ## This value can be "opensource" or "commercial" @@ -43,8 +43,8 @@ maintainers: username: "alfontaine" email: "alan.fontaine@centauricorp.com" resources: - - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.3-ubi8/gitlab-rails-ee.tar.gz" + - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.11.0-ubi8/gitlab-rails-ee.tar.gz" filename: "gitlab-rails-ee.tar.gz" validation: type: "sha256" - value: "61b0183fc485701e214c55b4ae9c454b5ae74bae06281a82c489c318622d4b53" + value: "b5ebb0356688a15429112cd8fb70cadb37174c29024457814523dbfa46be68e0" diff --git a/scripts/custom-instance-setup b/scripts/custom-instance-setup index f1b707e4047c92bf76a9611445bc810e42c7e730..b4659ece30afe6c915f361efa805cfc60e2683be 100755 --- a/scripts/custom-instance-setup +++ b/scripts/custom-instance-setup @@ -10,8 +10,13 @@ setting.update_attribute(:authorized_keys_enabled, false) puts 'Enabling incremental logging of CI jobs.' Feature.enable('ci_enable_live_trace') -puts 'Disabling access to disk storage for GitLab Pages' -Feature.disable('pages_update_legacy_storage') +if ENV['PAGES_UPDATE_LEGACY_STORAGE'] == 'true' + puts 'Enabling access to disk storage for GitLab Pages' + Feature.enable('pages_update_legacy_storage') +else + puts 'Disabling access to disk storage for GitLab Pages' + Feature.disable('pages_update_legacy_storage') +end puts 'Registering OAuth applications.' secrets_dir = ENV['OAUTH_SECRET_DIR'] || '/etc/gitlab/oauth-secrets' diff --git a/scripts/db-migrate b/scripts/db-migrate index b35c7f9b7d9d3947b4ace6d22ab3b8af34797bd8..b52d8fab1a61b48d5b1c3f3454898ebe7815c6f8 100755 --- a/scripts/db-migrate +++ b/scripts/db-migrate @@ -8,6 +8,12 @@ if [ -f "${ROOT_PASSWORD_FILE}" ]; then export GITLAB_ROOT_PASSWORD=$(cat "${ROOT_PASSWORD_FILE}") fi +SHARED_RUNNERS_REGISTRATION_TOKEN_FILE="${SHARED_RUNNERS_REGISTRATION_TOKEN_FILE:-/srv/gitlab/config/gitlab_shared_runners_registration_token}" + +if [ -f "${SHARED_RUNNERS_REGISTRATION_TOKEN_FILE}" ] && [ -r "${SHARED_RUNNERS_REGISTRATION_TOKEN_FILE}" ]; then + export GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN=$(cat "${SHARED_RUNNERS_REGISTRATION_TOKEN_FILE}") +fi + echo "Checking database migrations are up-to-date" # Seed or migrate the database via gitlab:db:configure