From f75d131cd34571d739a4a1ea4fc792e946cbed19 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 26 Oct 2026 22:19:44 +0200 Subject: [PATCH] ci: initial demo --- .gitea/workflows/ci.yml | 21 +++++++++++++++++++++ Dockerfile | 4 ++++ README.md | 3 +++ app.js | 1 + 4 files changed, 29 insertions(+) create mode 100644 .gitea/workflows/ci.yml create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 app.js diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..254e708 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + build-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Toolchain versions + run: | + node --version + npm --version + php --version | head -1 + go version + - name: Docker build + run: | + docker build -t ci-demo:${GITHUB_SHA::7} . + docker run --rm ci-demo:${GITHUB_SHA::7} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c0c1cc7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM node:20-alpine +WORKDIR /app +COPY app.js . +CMD ["node", "app.js"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c7377a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ci-demo + +Repo de test pentru Gitea Actions (runner host mode + Docker). diff --git a/app.js b/app.js new file mode 100644 index 0000000..790506a --- /dev/null +++ b/app.js @@ -0,0 +1 @@ +console.log("CI OK — container construit si rulat de Gitea Actions");