-
Add new user and give him root priviledges => https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-a-centos-7-server
-
Use sudo without password
-
Run the following command:
sudo visudo
-
Add the following to the bottom of the file and substitute 'username' with your username:
username ALL=(ALL) NOPASSWD:ALL
- Disable root login ( Optional ) => https://www.ionos.com/help/server-cloud-infrastructure/getting-started/important-security-information-for-your-server/deactivating-the-ssh-root-login/
-
Install git => https://www.digitalocean.com/community/tutorials/how-to-install-git-on-centos-7
-
Persists git credentials: Run
git config --global credential.helper store
andsudo git config --global credential.helper store
-
Configure git credentials
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
-
Check git configs:
git config --list
-
Install shasum running
sudo yum install -y perl-Digest-SHA
=> portainer/portainer#507 -
Install dotnet 6:
sudo yum install libicu -y
=> actions/runner#2511 -
Setup git actions: https://github.com/username/project/settings/actions/runners/new?arch=x64&os=linux
-
Install docker => https://docs.docker.com/engine/install/centos/
-
Install docker-compose => https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-centos-7
-
Allow to run docker-compose as sudo:
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
=> https://stackoverflow.com/questions/38775954/sudo-docker-compose-command-not-found -
run
sudo systemctl enable docker.service
-
run
sudo systemctl start docker
-
Remove apache
sudo yum erase httpd httpd-tools apr apr-util
-
Clone dedicated repo
-
go to the base path of the cloned repo and run
s
-
Configurer git actions
-
Push to the dedicated branch
-
Make sure everything is working as expected