From 614f9e37824d52d37916737a33f0637ad4238587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Mon, 2 Sep 2024 00:19:43 +0100 Subject: [PATCH] act-run container image deploy --- .gitea/act-runner.docker-image.deploy.yml | 29 +++++++++++++++++++++++ act-runner/Dockerfile | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 .gitea/act-runner.docker-image.deploy.yml create mode 100644 act-runner/Dockerfile 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