1. Information
-
See https://stackoverflow.com/questions/42074414/gitlab-push-to-a-repository-using-access-token.
-
See https://stackoverflow.com/questions/58084355/unable-to-push-git-tags-in-gitlab-ci-pipeline.
-
See https://stackoverflow.com/questions/69507324/gitlab-ci-cd-auto-tagging-release.
-
See https://www.baeldung.com/ops/gitlab-ci-pipeline-push-changes.
1.1. Predefined CI/CD Variables
-
See Predefined CI/CD variables reference.
CI_PROJECT_URL # http://gitlab.grendelgames.com/upm/dummy
1.2. Secrets
-
Select Avatar > Preferences.
-
Select Access Tokens.
Grendel BACKSLASH3 KeePassXC: GitLab - Douwe - Personal Access Token Avatar > Preferences > Access Tokens
2. Unity Packages > dummy
# Log in as *douwe* on WSL2 Debian. mkdir -p ~/gitlab cd ~/gitlab git clone http://gitlab.grendelgames.com/upm/dummy.git # Enter "douwe" for the username for 'http://gitlab.grendelgames.com'. # Enter the password. cd dummy git log --graph --all --decorate
3. Git-Fork
3.1. Configuration
-
Note: Fork does not accept a share as a Source Code Folder.
-
Create a symbolic link to allow Fork to access a repository inside WSL2.
-
Start Command Prompt with administrative privileges.
mklink /d C:\Users\Douwe\GitLab-Linux \\wsl.localhost\Debian\home\douwe\gitlab -
Start Fork.
-
Select File > Preferences.
-
Select the General tab.
-
Set the Source Code Folder to:
C:\Users\Douwe\GitLab-Linux. -
Close Fork.
3.2. ???
-
Start Fork.
-
Select File > Accounts.
-
Select the Repositories tab.
-
Select Unity Packages > dummy.
-
Click on the small arrow down icon to clone the repository.
-
Click Close.
-
Close Fork.
-
Start Fork.
-
Select File > Open Repository.
-
Select the dummy repository.
-
Click Select Folder.
fatal: detected dubious ownership in repository at '//wsl.localhost/Debian/home/douwe/gitlab/dummy' To add an exception for this directory, call: git config --global --add safe.directory '%(prefix)///wsl.localhost/Debian/home/douwe/gitlab/dummy'
-
Click Mark repository as safe.
-
Close Fork.
4. GitLab Exercise
-
The GitLab Exercise is at : https://gitlab.com/dhkiestra/gitlabexercise.git
-
Browse to https://gitlab.com/dhkiestra/gitlabexercise.