diff --git a/.gitea/workflows/act-runner.docker.deploy.yml b/.gitea/workflows/act-runner.docker.deploy.yml new file mode 100644 index 0000000..b5cb3a4 --- /dev/null +++ b/.gitea/workflows/act-runner.docker.deploy.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 5ffb400..5c7ed97 100644 --- a/README.md +++ b/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= ``` + 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) + \ No newline at end of file diff --git a/docker/act-runner_ansible/Dockerfile b/docker/act-runner_ansible/Dockerfile new file mode 100644 index 0000000..72b9614 --- /dev/null +++ b/docker/act-runner_ansible/Dockerfile @@ -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 + diff --git a/docker/act-runner_ansible/docker-compose.yml b/docker/act-runner_ansible/docker-compose.yml new file mode 100644 index 0000000..da10847 --- /dev/null +++ b/docker/act-runner_ansible/docker-compose.yml @@ -0,0 +1,5 @@ +services: + runner: + build: + dockerfile: ./Dockerfile + diff --git a/gitea.code-workspace b/gitea.code-workspace new file mode 100644 index 0000000..bcf4061 --- /dev/null +++ b/gitea.code-workspace @@ -0,0 +1,7 @@ +{ + "folders": [ + { + "path": "." + } + ], +} \ No newline at end of file