{"id":20777697,"url":"https://github.com/sh-cho/gitlab-ci-practice","last_synced_at":"2026-04-24T21:33:37.854Z","repository":{"id":176497854,"uuid":"658809114","full_name":"sh-cho/gitlab-ci-practice","owner":"sh-cho","description":"Local gitlab, gitlab-runner environment for test","archived":false,"fork":false,"pushed_at":"2023-06-26T15:13:22.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T23:50:53.391Z","etag":null,"topics":["docker-compose","gitlab","gitlab-ci","gitlab-runner"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sh-cho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-26T14:30:57.000Z","updated_at":"2023-06-26T14:31:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"14962098-82ef-4a3f-b794-01f15c66e46b","html_url":"https://github.com/sh-cho/gitlab-ci-practice","commit_stats":null,"previous_names":["sh-cho/gitlab-ci-practice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sh-cho/gitlab-ci-practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh-cho%2Fgitlab-ci-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh-cho%2Fgitlab-ci-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh-cho%2Fgitlab-ci-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh-cho%2Fgitlab-ci-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sh-cho","download_url":"https://codeload.github.com/sh-cho/gitlab-ci-practice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh-cho%2Fgitlab-ci-practice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-compose","gitlab","gitlab-ci","gitlab-runner"],"created_at":"2024-11-17T13:16:37.527Z","updated_at":"2026-04-24T21:33:37.843Z","avatar_url":"https://github.com/sh-cho.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitlab-ci-practice\n\nUse Gitlab CI as CI/CD for GitHub repo\n\n\u003e **Warning**\n\u003e\n\u003e Unfortunately, \"Using GitLab CI/CD with a GitHub repository\"[^2] is for PREMIUM only. So, this repo is not working now 😞\n\n## Install\n\n```sh\ncp .env.template .env\n```\n1. Setup `.env` with [.env.template](.env.template)\n\n```sh\ndocker compose up -d\n```\n2. Run\n\n```sh\n# in gitlab container\ngrep 'Password:' /etc/gitlab/initial_root_password\nPassword: CgmfBfGdcLfdgH9OmId9YXo4rNyDBcRbVvFdgfuk0V8=\n```\n3. Check root password\n\nInit process takes time, wait for a while - about 10 min\n\n```sh\ngitlab-rake \"gitlab:password:reset[root]\"\n# wait about 10 minutes... (why?)\nEnter password:\nConfirm password:\nPassword successfully updated for user with username root.\n```\nIf not found, manually reset root password (don't know why). Note that password should be more than 8 characters. If not, you will be waiting 10 minutes again.\n\n- https://stackoverflow.com/a/71546291/4295499\n\n```sh\n# in gitlab-runner container\ngitlab-runner register \\\n  --url http://gitlab-runner:4080 \\\n  --token glrt-K5WfXsQN78GHPdTVN5nu\n```\n4. Add runner in gitlab admin page(http://localhost:4080/admin), and register gitlab runner\n\n```\nRuntime platform                                    arch=arm64 os=linux pid=33 revision=b72e108d version=16.1.0\nRunning in system-mode.\nEnter the GitLab instance URL (for example, https://gitlab.com/):\n[http://gitlab-web:4080]: \nVerifying runner... is valid                        runner=o-1sLCpq4\nEnter a name for the runner. This is stored only in the local config.toml file:\n[gitlab-runner-1]: \nEnter an executor: custom, docker, ssh, docker+machine, kubernetes, docker-windows, parallels, shell, virtualbox, docker-autoscaler, instance: docker\nEnter the default Docker image (for example, ruby:2.7): alpine:latest\nRunner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!\n \nConfiguration (with the authentication token) was saved in \"/etc/gitlab-runner/config.toml\"\n```\n\n![image](https://github.com/sh-cho/gitlab-ci-practice/assets/11611397/cc344eff-d164-423e-90e6-5f11c662e04e)\n\nEnter runner options and done :)\n\n```sh\ngitlab-runner run\n```\n(Optional) run (if not run with [service](https://docs.gitlab.com/runner/commands/#service-related-commands))\n\n\n```sh\nngrok http --domain={your_domain}.ngrok-free.app 4080\n```\n5. Run ngrok to receive webhook from GitHub\n\n6. Configure allowed import sources[^1]\n\n7. Setup GitLab CI/CD for external repo[^2]\n\nAfter that, on github repo, add ngrok domain as webhook url\n\n8. Add `.gitlab-ci.yml` to your repo\n\nNote: only `yml` is working (not yaml)\n\n## Reference\n- https://docs.gitlab.com/ee/install/docker.html#install-gitlab-using-docker-compose\n\n\n[^1]: https://docs.gitlab.com/ee/user/admin_area/settings/visibility_and_access_controls.html#configure-allowed-import-sources\n[^2]: https://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/github_integration.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh-cho%2Fgitlab-ci-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsh-cho%2Fgitlab-ci-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh-cho%2Fgitlab-ci-practice/lists"}