gitlab

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

GitLab runner

Instlal with Ansible
https://github.com/panticz/ansible/tree/master/roles/gitlab-runner

Get token from GitLab server
http://gitlab/admin/runners

Register
sudo gitlab-runner register \
--non-interactive \
--url "http://gitlab/" \
--registration-token "XAr8-bZz2PbpFSrYRFMt" \
--executor "shell" \
--description "runner1" \
--tag-list "shell,runner" \
--run-untagged \
--locked="false"

.gitlab-ci.yml
before_script:
- date > /tmp/date

step1:
script:
- touch /tmp/x

GitLab: Web-based Git repository manager

Install
http://www.panticz.de/install-gitlab

# restart gitlab
gitlab-ctl restart

# git home directory
/var/opt/gitlab

Reset admin password
gitlab-rails console production
u = User.where(id: 1).first
u.password = 'secret'
u.password_confirmation = 'secret'
u.save!

backup
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md
# full backup
gitlab-rake gitlab:backup:create

# backup without reposiories
sudo gitlab-rake gitlab:backup:create SKIP=repositories

# backup target

Syndicate content