Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
omnibus-gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
omnibus-gitlab
Commits
879d9354
Commit
879d9354
authored
8 years ago
by
Marin Jankovski
Committed by
Marin Jankovski
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Merge branch 'speed_up_builds' into 'master'
Speed up builds Related
#1372
See merge request
!845
parent
65ebbd30
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+34
-2
34 additions, 2 deletions
.gitlab-ci.yml
Makefile
+9
-0
9 additions, 0 deletions
Makefile
omnibus.rb
+8
-0
8 additions, 0 deletions
omnibus.rb
with
51 additions
and
2 deletions
.gitlab-ci.yml
+
34
−
2
View file @
879d9354
...
...
@@ -13,14 +13,16 @@ before_script:
.branch_template
:
&branch_build
stage
:
package
script
:
-
ln -s "$(pwd)/cache" /var/cache/omnibus
-
echo "$DEV_GITLAB_SSH_KEY" > ~/.ssh/id_rsa
-
ssh-keyscan -H dev.gitlab.org > ~/.ssh/known_hosts
-
chmod -R 0600 ~/.ssh/
-
echo -e "[default]\naws_access_key_id = $AWS_ACCESS_KEY_ID \naws_secret_access_key = $AWS_SECRET_ACCESS_KEY" > ~/.aws/config
-
echo "{'url':'https://packages.gitlab.com','token':'$PACKAGECLOUD_TOKEN'}" > ~/.packagecloud
-
ssh -vvT git@dev.gitlab.org
-
make populate_cache
-
make restore_cache_bundle
-
make test
-
make pack_cache_bundle
-
rm -rf /var/cache/omnibus/pkg
tags
:
-
docker-builder
...
...
@@ -30,14 +32,16 @@ before_script:
.tag_template
:
&tag_build
stage
:
package
script
:
-
ln -s "$(pwd)/cache" /var/cache/omnibus
-
echo "$DEV_GITLAB_SSH_KEY" > ~/.ssh/id_rsa
-
ssh-keyscan -H dev.gitlab.org > ~/.ssh/known_hosts
-
chmod -R 0600 ~/.ssh/
-
echo -e "[default]\naws_access_key_id = $AWS_ACCESS_KEY_ID \naws_secret_access_key = $AWS_SECRET_ACCESS_KEY" > ~/.aws/config
-
echo "{'url':'https://packages.gitlab.com','token':'$PACKAGECLOUD_TOKEN'}" > ~/.packagecloud
-
ssh -vvT git@dev.gitlab.org
-
make populate_cache
-
make restore_cache_bundle
-
make do_release
-
make pack_cache_bundle
-
rm -rf /var/cache/omnibus/pkg
tags
:
-
docker-builder
...
...
@@ -51,24 +55,52 @@ cache:
Ubuntu 12.04
:
image
:
"
dev.gitlab.org:5005/cookbooks/gitlab-omnibus-builder:precise"
cache
:
key
:
"
Ubuntu
12.04
branch"
paths
:
-
cache
<<
:
*tag_build
Ubuntu 14.04
:
image
:
"
dev.gitlab.org:5005/cookbooks/gitlab-omnibus-builder:trusty"
cache
:
key
:
"
Ubuntu
14.04
branch"
paths
:
-
cache
<<
:
*tag_build
Ubuntu 16.04
:
image
:
"
dev.gitlab.org:5005/cookbooks/gitlab-omnibus-builder:xenial"
cache
:
key
:
"
Ubuntu
16.04
branch"
paths
:
-
cache
<<
:
*tag_build
Debian 7
:
image
:
"
dev.gitlab.org:5005/cookbooks/gitlab-omnibus-builder:wheezy"
cache
:
key
:
"
Debian
7
branch"
paths
:
-
cache
<<
:
*tag_build
Debian 8
:
image
:
"
dev.gitlab.org:5005/cookbooks/gitlab-omnibus-builder:jessie"
cache
:
key
:
"
Debian
8
branch"
paths
:
-
cache
<<
:
*tag_build
Centos 6
:
image
:
"
dev.gitlab.org:5005/cookbooks/gitlab-omnibus-builder:centos6"
cache
:
key
:
"
Centos
6
branch"
paths
:
-
cache
<<
:
*tag_build
Centos 7
:
image
:
"
dev.gitlab.org:5005/cookbooks/gitlab-omnibus-builder:centos7"
cache
:
key
:
"
Centos
7
branch"
paths
:
-
cache
<<
:
*tag_build
Ubuntu 12.04 branch
:
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
9
−
0
View file @
879d9354
...
...
@@ -22,6 +22,15 @@ else
DOCKER_TAG
:=
$(
RELEASE_VERSION
)
endif
populate_cache
:
bin/omnibus cache populate
restore_cache_bundle
:
if
test
-f
cache/
${
PLATFORM_DIR
};
then
git clone
--mirror
cache/
${
PLATFORM_DIR
}
/var/cache/omnibus/cache/git_cache/opt/gitlab
;
fi
;
pack_cache_bundle
:
git
--git-dir
=
/var/cache/omnibus/cache/git_cache/opt/gitlab bundle create cache/
${
PLATFORM_DIR
}
--tags
build
:
bin/omnibus build
${
PROJECT
}
--override
append_timestamp:false
--log-level
info
...
...
This diff is collapsed.
Click to expand it.
omnibus.rb
0 → 100644
+
8
−
0
View file @
879d9354
use_s3_caching
true
s3_access_key
ENV
[
'CACHE_AWS_ACCESS_KEY_ID'
]
s3_secret_key
ENV
[
'CACHE_AWS_SECRET_ACCESS_KEY'
]
s3_bucket
ENV
[
'CACHE_AWS_BUCKET'
]
s3_region
ENV
[
'CACHE_AWS_S3_REGION'
]
build_retries
2
fetcher_retries
5
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment