Skip to content

Instantly share code, notes, and snippets.

@ivanelianto
Last active January 7, 2020 03:35
Show Gist options
  • Save ivanelianto/b81df905675e27e8372a8032558c4eb5 to your computer and use it in GitHub Desktop.
Save ivanelianto/b81df905675e27e8372a8032558c4eb5 to your computer and use it in GitHub Desktop.
Gitlab CI/CD Simple Tutorial
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