From 43bcf2b4570bffa2d4747199853182dd1bc3f413 Mon Sep 17 00:00:00 2001 From: makew Date: Sat, 21 Mar 2026 18:15:08 +0200 Subject: [PATCH] =?UTF-8?q?gitea-ci=20lis=C3=A4tty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/gitea-ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .gitea/gitea-ci.yml diff --git a/.gitea/gitea-ci.yml b/.gitea/gitea-ci.yml new file mode 100644 index 0000000..0f26a6a --- /dev/null +++ b/.gitea/gitea-ci.yml @@ -0,0 +1,44 @@ +# +# .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 + - name: Use Node.js + uses: https://github.com/actions/setup-node@v3 + with: + node-version: '18.17' + - run: npm ci + - run: npm run lint + - run: npm run test + - run: npm run build:prod + env: + NODE_OPTIONS: --max_old_space_size=4096 + + 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."gitea.paddington.fi"] + 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: "gitea.paddington.fi/make/birdspotter:${{gitea.sha}},gitea.paddington.fi/make/birdspotter:latest" \ No newline at end of file