runner
This commit is contained in:
parent
ff5b932cfc
commit
5ea93df262
@ -138,10 +138,13 @@ services:
|
||||
order: start-first
|
||||
|
||||
gitea-runner:
|
||||
image: gitea/act_runner:nightly
|
||||
image: mathwave/sprint-repo:gitea-runner
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /sprint-data:/sprint-data
|
||||
environment:
|
||||
GITEA_INSTANCE_URL: gitea.sprinthub.ru
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: $REGISTRATION_TOKEN
|
||||
deploy:
|
||||
mode: replicated
|
||||
placement:
|
||||
|
@ -170,10 +170,13 @@ services:
|
||||
order: start-first
|
||||
|
||||
gitea-runner:
|
||||
image: gitea/act_runner:nightly
|
||||
image: mathwave/sprint-repo:gitea-runner
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /sprint-data:/sprint-data
|
||||
environment:
|
||||
GITEA_INSTANCE_URL: gitea.sprinthub.ru
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: $REGISTRATION_TOKEN
|
||||
deploy:
|
||||
mode: replicated
|
||||
placement:
|
||||
|
@ -28,6 +28,8 @@ build:
|
||||
- docker push mathwave/sprint-repo:sprint-infra-nginx-dev
|
||||
- docker build -t mathwave/sprint-repo:sprint-infra-nginx-prod nginx/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:
|
||||
stage: deploy-dev
|
||||
|
11
gitea-runner/Dockerfile
Normal file
11
gitea-runner/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user