This commit is contained in:
emmatveev 2024-10-10 23:31:31 +03:00
parent ff5b932cfc
commit 5ea93df262
4 changed files with 21 additions and 2 deletions

View File

@ -138,10 +138,13 @@ services:
order: start-first order: start-first
gitea-runner: gitea-runner:
image: gitea/act_runner:nightly image: mathwave/sprint-repo:gitea-runner
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /sprint-data:/sprint-data - /sprint-data:/sprint-data
environment:
GITEA_INSTANCE_URL: gitea.sprinthub.ru
GITEA_RUNNER_REGISTRATION_TOKEN: $REGISTRATION_TOKEN
deploy: deploy:
mode: replicated mode: replicated
placement: placement:

View File

@ -170,10 +170,13 @@ services:
order: start-first order: start-first
gitea-runner: gitea-runner:
image: gitea/act_runner:nightly image: mathwave/sprint-repo:gitea-runner
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /sprint-data:/sprint-data - /sprint-data:/sprint-data
environment:
GITEA_INSTANCE_URL: gitea.sprinthub.ru
GITEA_RUNNER_REGISTRATION_TOKEN: $REGISTRATION_TOKEN
deploy: deploy:
mode: replicated mode: replicated
placement: placement:

View File

@ -28,6 +28,8 @@ build:
- docker push mathwave/sprint-repo:sprint-infra-nginx-dev - docker push mathwave/sprint-repo:sprint-infra-nginx-dev
- docker build -t mathwave/sprint-repo:sprint-infra-nginx-prod nginx/nginx-prod - docker build -t mathwave/sprint-repo:sprint-infra-nginx-prod nginx/nginx-prod
- docker push mathwave/sprint-repo:sprint-infra-nginx-prod - docker push mathwave/sprint-repo:sprint-infra-nginx-prod
- docker build -t mathwave/sprint-repo:gitea-runner gitea-runner
- docker push mathwave/sprint-repo:gitea-runner
deploy-dev: deploy-dev:
stage: deploy-dev stage: deploy-dev

11
gitea-runner/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM gitea/act_runner:nightly
RUN apt-get update
RUN apt-get install --yes ca-certificates curl gnupg lsb-release
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update --yes
RUN apt-get install --yes docker-ce docker-ce-cli containerd.io docker-compose-plugin