From 3500206d1de9cba4a120c83acc03b33c4b4a131d Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Mon, 16 Sep 2024 14:04:18 +0200 Subject: [PATCH] =?UTF-8?q?.gitea/gitea-ci.yaml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/gitea-ci.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/gitea-ci.yaml diff --git a/.gitea/gitea-ci.yaml b/.gitea/gitea-ci.yaml new file mode 100644 index 0000000..a4442e1 --- /dev/null +++ b/.gitea/gitea-ci.yaml @@ -0,0 +1,34 @@ +# +# .gitea/gitea-ci.yaml +# + +name: Build And Test +run-name: ${{ gitea.actor }} is runs ci pipeline +on: [ push ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: https://github.com/actions/checkout@v4 + + publish: + runs-on: cth-ubuntu-latest + needs: build + if: gitea.ref == 'refs/heads/main' + steps: + - uses: https://github.com/actions/checkout@v4 + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."registry.tuxnet.lan"] + http = true + insecure = true + - name: Build and push Docker image + uses: https://github.com/docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: "registry.tuxnet.lan/web/dokuwiki:${{gitea.sha}}" \ No newline at end of file