Last active
January 7, 2020 03:35
-
-
Save ivanelianto/b81df905675e27e8372a8032558c4eb5 to your computer and use it in GitHub Desktop.
Gitlab CI/CD Simple Tutorial
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
Config Di Project : | |
1. Buat File gitlab-ci.yml | |
2. Baca Dokumentasi Gitlab, Intinya, Buat Aja Dengan Format: | |
<nama-task>: | |
[stage]:<test|build|deploy> | |
script: | |
- <commands> | |
3. Tinggal Push | |
==================== | |
Config Di Server : | |
1. Install Gitlab Runner | |
2. gitlab-runner register (Ikutin Aja Yang Di Web Gitlab) | |
3. Paste Runner Token (Didapat Dari Project Bagian Runner) | |
4. Pilih Executor "shell" Aja Yang Paling Basic | |
4. Pastiin Runner Sudah Start | |
5. Tambahin Baris Berikut Ini Di /etc/sudoers Apabila Perlu Melakukan Command Dengan User root : | |
gitlab-runner ALL=(ALL) NOPASSWD:ALL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment