Golang: get package from own gitlab private repository with SSH

Step 1 : Generate SSH token RSA in local computer with ssh-keygen
Step 2 : Add ssh token to gitlab
step 3 : Run shell

RUN ssh-keyscan -t rsa gitlab.kplabs.id >> ~/.ssh/known_hosts

step 4 : Run shell
Git configuration

git config –glob…


This content originally appeared on DEV Community and was authored by Agik Setiawan

Step 1 : Generate SSH token RSA in local computer with ssh-keygen
Step 2 : Add ssh token to gitlab
step 3 : Run shell

RUN ssh-keyscan -t rsa gitlab.kplabs.id >> ~/.ssh/known_hosts

step 4 : Run shell
Git configuration

git config --global url."YOUR_OWN_GITLAB_SITE:".insteadOf "https://YOUR_OWN_GITLAB_SITE/"

step 5 : Run shell

export GOPRIVATE=YOUR_OWN_GITLAB_SITE/YOUR_PACKAGE

step 6 : Run shell

go get YOUR_OWN_GITLAB_SITE/YOUR_PACKAGE


This content originally appeared on DEV Community and was authored by Agik Setiawan


Print Share Comment Cite Upload Translate Updates
APA

Agik Setiawan | Sciencx (2024-07-16T07:19:48+00:00) Golang: get package from own gitlab private repository with SSH. Retrieved from https://www.scien.cx/2024/07/16/golang-get-package-from-own-gitlab-private-repository-with-ssh/

MLA
" » Golang: get package from own gitlab private repository with SSH." Agik Setiawan | Sciencx - Tuesday July 16, 2024, https://www.scien.cx/2024/07/16/golang-get-package-from-own-gitlab-private-repository-with-ssh/
HARVARD
Agik Setiawan | Sciencx Tuesday July 16, 2024 » Golang: get package from own gitlab private repository with SSH., viewed ,<https://www.scien.cx/2024/07/16/golang-get-package-from-own-gitlab-private-repository-with-ssh/>
VANCOUVER
Agik Setiawan | Sciencx - » Golang: get package from own gitlab private repository with SSH. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/16/golang-get-package-from-own-gitlab-private-repository-with-ssh/
CHICAGO
" » Golang: get package from own gitlab private repository with SSH." Agik Setiawan | Sciencx - Accessed . https://www.scien.cx/2024/07/16/golang-get-package-from-own-gitlab-private-repository-with-ssh/
IEEE
" » Golang: get package from own gitlab private repository with SSH." Agik Setiawan | Sciencx [Online]. Available: https://www.scien.cx/2024/07/16/golang-get-package-from-own-gitlab-private-repository-with-ssh/. [Accessed: ]
rf:citation
» Golang: get package from own gitlab private repository with SSH | Agik Setiawan | Sciencx | https://www.scien.cx/2024/07/16/golang-get-package-from-own-gitlab-private-repository-with-ssh/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.