feat/act-runner-ansible #3

Merged
marcio.fernandes merged 7 commits from feat/act-runner-ansible into main 2024-11-02 21:23:55 +00:00
5 changed files with 74 additions and 6 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

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,18 @@ _Source - https://docs.gitea.io/en-us/backup-and-restore/_
}
```
## act runner
### custom image - with ansible
[Docker Image](/kb/-/packages/container/gitea%2Fact-runner_ansible/0.2.11)
[Dockerfile](./docker/act-runner/ansible/Dockerfile)
### Official Docker Image
## gitea action runner
docker compose
#### Docker compose
``` yaml
...
@@ -72,9 +82,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,18 @@
FROM gitea/act_runner:0.2.11
RUN echo "build started.."
RUN apk update && \
apk add --no-cache openssh-client && \
apk add --no-cache curl && \
apk add --no-cache ansible && \
apk add --no-cache nodejs && \
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": "."
}
],
}