first commit :)
All checks were successful
/ build-docker-image (push) Successful in 1m0s

This commit is contained in:
2024-11-02 15:50:12 +00:00
parent be7f9a65a9
commit 51f825801a
5 changed files with 71 additions and 5 deletions

View 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

View File

@@ -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)

View 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

View File

@@ -0,0 +1,5 @@
services:
runner:
build:
dockerfile: ./Dockerfile

7
gitea.code-workspace Normal file
View File

@@ -0,0 +1,7 @@
{
"folders": [
{
"path": "."
}
],
}