diff --git a/.gitea/act-runner.docker-image.deploy.yml b/.gitea/act-runner.docker-image.deploy.yml new file mode 100644 index 0000000..a23557a --- /dev/null +++ b/.gitea/act-runner.docker-image.deploy.yml @@ -0,0 +1,29 @@ +on: + push: + paths: + - "act-runner/**" + - ".gitea/**act-runner**" +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.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker images + id: push + uses: docker/build-push-action@v6 + with: + context: ${{gitea.workspace}}/docker + push: true + tags: git.limbosolutions.com/kb/ubuntu:act-latest \ No newline at end of file diff --git a/act-runner/Dockerfile b/act-runner/Dockerfile new file mode 100644 index 0000000..8b842c5 --- /dev/null +++ b/act-runner/Dockerfile @@ -0,0 +1,2 @@ +FROM catthehacker/ubuntu:act-latest +RUN apt-get update && apt install software-properties-common && add-apt-repository --yes --update ppa:ansible/ansible && apt-get install -y ansible