Skip to content

go-training/cicd-workshop-cht

Repository files navigation

cicd-workshop-cht

CI/CD workshop

Prepare

mkdir -p gitea/{data,config}
cd gitea
touch docker-compose.yml
# chnage permission
chmod 777 config/ data/

Start Gitea Server

cd gitea && docker-compose up -d gitea-server

How to enable Gitea Actions. open config/app.ini file. add following lines.

[actions]
ENABLED=true

[webhook]
ALLOWED_HOST_LIST = your_server_ip

Start Gitea Runner

Start Global Gitea Runner

cd gitea && mkdir -p data/act_runner
cd gitea && chmod 777 data/act_runner
cd gitea && docker-compose up -d gitea-runner

Start User's Gitea Runner

cd gitea && mkdir -p data/act_user_runner
cd gitea && chmod 777 data/act_user_runner
cd gitea && docker-compose up -d gitea-user-runner