-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #789 from socallinuxexpo/rh/devserver-runners
[READY] - init devServer gitlab runner
- Loading branch information
Showing
8 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Gitlab | ||
|
||
See the pipelines defined: https://github.com/socallinuxexpo/scale-network/blob/master/.gitlab-ci.yml | ||
|
||
Our [autoflash process](./openwrt/docs/AUTOFLASH.md) leverages `gitlab-runners` to be able to interact with real hardware so that | ||
we can automate the flashing process to test our openwrt images. | ||
|
||
## Generate token for runner | ||
|
||
1. Navigate to the [runner page](https://gitlab.com/groups/socallinuxexpo/-/runners) | ||
|
||
1. Click the `New Group Runner` | ||
|
||
1. Ensure that you have the right tags for the runner. These should match the `.gitlab-ci` jobs you expect to run. | ||
|
||
1. Add a description and set an appropriate timeout if different from the default. | ||
|
||
1. Take the token and place it on the runner. | ||
|
||
> NOTE: Runners cannot be configured with additional tags or config. These are encoded into the token. Should these | ||
> config need to change you'll need a new token. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ pkgs, ... }: | ||
{ | ||
services.gitlab-runner = { | ||
enable = true; | ||
gracefulTermination = true; | ||
services = { | ||
shell = { | ||
# make sure this is a quote path so it doesnt end up in /nix/store | ||
authenticationTokenConfigFile = "/persist/etc/gitlab/shellAuthToken.env"; | ||
executor = "shell"; | ||
}; | ||
}; | ||
}; | ||
|
||
# include for gl-runner cli | ||
environment.systemPackages = [ pkgs.gitlab-runner ]; | ||
} |
This file contains 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