Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/gitlab-runner/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/gitlab-runner/.ssh/id_ed25519.
Your public key has been saved in /home/gitlab-runner/.ssh/id_ed25519.pub.
The key fingerprint is:
SHA256:ExJKSyRZI531tNkQUi2zLrqQFzLUAbf/WmG/sX2zdQQ gustavo.matamoros@gmail.com
The key's randomart image is:
+--[ED25519 256]--+
| +*Oo+.=o |
| .Bo* =o=. |
| . = . =+. E |
| . . ... . |
| o . ..S .|
| + ..o.+ . |
| o .. .o o o|
| o. o = o..|
| ... o ...o |
+----[SHA256]-----+
Luego dentro d ela configuración del proyecto ingresamos a
Vamos a la sección de runners expandir
Y aquí vamos a encontrar la información necesaria patra darle acceso al runner
Ahora registramos el runner
gitlab-runner register
Nos va pedir una serie de datos
Runtime platform arch=amd64 os=linux pid=20229 revision=003fe500 version=12.7.1
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
https://git.siua.ac.cr
Please enter the gitlab-ci token for this runner:
p9VpbVS8Dy9cL7pCM41u
Please enter the gitlab-ci description for this runner:
[git]: Pasé a produccion quiosco.siua.ac.cr
Please enter the gitlab-ci tags for this runner (comma separated):
Registering runner... succeeded runner=p9VpbVS8
Please enter the executor: docker-ssh, docker-ssh+machine, kubernetes, custom, docker, parallels, shell, ssh, virtualbox, docker+machine:
shell
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
Para nuestro caso el tipo va ser de tipo shell por que ocupamos ejecutar comando de este tipo
Ahora si recargamos la configuración de gitlab en CI/CD ya debería aparecer el runner