This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
## GitLab Nginx | |
##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html | |
################################################################################ | |
nginx['listen_port'] = 80 | |
nginx['listen_https'] = false | |
nginx['proxy_set_headers'] = { | |
"X-Forwarded-Proto" => "https", | |
"X-Forwarded-Ssl" => "on" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
gitlab-runner: | |
container_name: gitlab-runner-hostname | |
restart: always | |
image: gitlab/gitlab-runner:alpine-v11.7.0 | |
environment: | |
TZ: "Asia/Hong_Kong" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PRODUCTION | |
.prd_ci_job: &prd_ci_job | |
only: | |
- production | |
tags: | |
- hostname-shared-ssh | |
.prd_ci_manual_job: &prd_ci_manual_job | |
when: manual | |
<<: *prd_ci_job |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitlab-runner register -n \ | |
--url https://example.com \ | |
--registration-token your-token \ | |
--executor docker \ | |
--description "hostname-shared-docker" \ | |
--tag-list "hostname-shared-docker" \ | |
--docker-image "docker:stable" \ | |
--docker-volumes /var/run/docker.sock:/var/run/docker.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitlab-runner register -n \ | |
--url https://gitlab.domain.com/ \ | |
--registration-token your-registration-token \ | |
--executor docker \ | |
--description "hostname-shared-docker" \ | |
--tag-list "hostname-shared-docker" \ | |
--docker-image "docker:stable" \ | |
--docker-privileged true \ | |
--docker-volumes /var/run/docker.sock:/var/run/docker.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: docker:stable | |
variables: | |
CONTAINER_IMAGE: container-registry.domain/$CI_PROJECT_PATH | |
stages: | |
- build | |
before_script: | |
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM busybox:latest | |
MAINTAINER Jody Wan ([email protected]) | |
CMD ["date"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PRODUCTION | |
.prd_ci_job: &prd_ci_job | |
only: | |
- production | |
tags: | |
- hostname.shared.ssh | |
.prd_ci_manual_job: &prd_ci_manual_job | |
when: manual | |
<<: *prd_ci_job |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### LDAP Settings | |
###! Docs: https://docs.gitlab.com/omnibus/settings/ldap.html | |
###! **Be careful not to break the indentation in the ldap_servers block. It is | |
###! in yaml format and the spaces must be retained. Using tabs will not work.** | |
gitlab_rails['ldap_enabled'] = true | |
gitlab_rails['ldap_servers'] = { | |
'main' => { | |
'label' => 'LDAP', | |
'host' => 'nerv-system.live', |
OlderNewer