From 48c24a3f92c304d96f1129118f50546ebd0d3272 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sat, 25 Mar 2023 18:44:05 +0300 Subject: [PATCH] Fix readme --- README.md | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 40f2b74..b2d30a4 100644 --- a/README.md +++ b/README.md @@ -10,27 +10,40 @@ Before you begin, you will need: 1. Update the repository cache: -sudo apt update +`sudo apt update` -2. Install the necessary packages (`nginx-light`, `certbot`, `python3-certbot-nginx`, and `docker.io`): +2. Install the necessary packages: -sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io +`sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io` 3. Add the current user to the `docker` group and switch to this group: -sudo usermod -a -G docker $USER newgrp docker +`sudo usermod -a -G docker $USER newgrp docker` 4. Initialize Docker Swarm mode if it has not yet been initialized: -docker swarm init || true +`docker swarm init || true` 5. Deploy the Gitea application using Docker Swarm: -docker stack deploy -c stack.yaml gitea - +`docker stack deploy -c stack.yaml gitea` Note: The `stack.yaml` file contains the configuration for the Gitea application, including the Docker image to use, the ports to expose, and any environment variables to set. + + +6. Change `GITEA_HOSTNAME` and `EMAIL` to your own values and then run `setup_nginx.sh` script: + +`bash setup_nginx.sh` + +It will generate nginx config and issue ssl certificate for your Gitea. + +7. After that you can go to `$GITEA_HOSTNAME` URL and finish the installstion. At the bottom of install page, don't forget to create +an administrator account. + +8. Go to `$GITEA_HOSTNAME/admin/runners`, press `Create new runner` button, copy registration token from there and incert it into `.env` file as `GITEA_TOKEN` parameter. + +9. Run `setup_act_runner` script, which will install CI agent to your node. You will se it on `$GITEA_HOSTNAME/admin/runners` page. \ No newline at end of file