This commit is contained in:
27
.gitea/workflows/act-runner.docker.deploy.yml
Normal file
27
.gitea/workflows/act-runner.docker.deploy.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
on:
|
||||
push
|
||||
jobs:
|
||||
|
||||
build-docker-image:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Log in to git.limbosolutions.com docker registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.limbosolutions.com
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push act-runner_ansible Docker Image
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ${{gitea.workspace}}/docker/act-runner_ansible
|
||||
file: ${{gitea.workspace}}/docker/act-runner_ansible/Dockerfile
|
||||
push: true
|
||||
tags: git.limbosolutions.com/kb/gitea/act-runner_ansible:0.2.11-dev
|
||||
20
README.md
20
README.md
@@ -4,7 +4,10 @@
|
||||
- [Backup And Restore](#backup-and-restore)
|
||||
- [Gitea dump from docker host](#gitea-dump-from-docker-host)
|
||||
- [nginx](#nginx)
|
||||
- [gitea action runner](#gitea-action-runner)
|
||||
- [act runner](#act-runner)
|
||||
- [custom image - with ansible](#custom-image---with-ansible)
|
||||
- [Official Docker Image](#official-docker-image)
|
||||
- [Docker compose](#docker-compose)
|
||||
- [Other References](#other-references)
|
||||
|
||||
## Links
|
||||
@@ -44,11 +47,19 @@ _Source - https://docs.gitea.io/en-us/backup-and-restore/_
|
||||
}
|
||||
```
|
||||
|
||||
## act runner
|
||||
|
||||
### custom image - with ansible
|
||||
|
||||
[Docker Image](packages/act-runner)
|
||||
|
||||
[Dockerfile](./docker/act-runner/ansible/Dockerfile)
|
||||
|
||||
|
||||
## gitea action runner
|
||||
### Official Docker Image
|
||||
|
||||
docker compose
|
||||
|
||||
#### Docker compose
|
||||
|
||||
``` yaml
|
||||
...
|
||||
@@ -72,9 +83,10 @@ docker compose
|
||||
# Needed only for the first start.
|
||||
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
|
||||
```
|
||||
|
||||
https://gitea.com/gitea/act_runner/src/branch/main/examples/docker-compose
|
||||
|
||||
## Other References
|
||||
|
||||
- limbosolutions gitea hosting https://git.limbosolutions.com (chech the git repository https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com )
|
||||
- [limbosolutions gitea hosting](https://git.limbosolutions.com) and [git repo](https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com)
|
||||
|
||||
15
docker/act-runner_ansible/Dockerfile
Normal file
15
docker/act-runner_ansible/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
FROM gitea/act_runner:0.2.11
|
||||
|
||||
|
||||
RUN echo "build started.."
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache ansible && \
|
||||
rm -rf /tmp/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN mkdir /ansible && \
|
||||
mkdir -p /etc/ansible && \
|
||||
echo 'localhost' > /etc/ansible/hosts
|
||||
|
||||
5
docker/act-runner_ansible/docker-compose.yml
Normal file
5
docker/act-runner_ansible/docker-compose.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
services:
|
||||
runner:
|
||||
build:
|
||||
dockerfile: ./Dockerfile
|
||||
|
||||
7
gitea.code-workspace
Normal file
7
gitea.code-workspace
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user