From ad524978dffca03c064810b7593e2aa761fbf06b Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Fri, 9 Jan 2026 12:57:51 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20(ci.yml):=20renamed=20Deno?= =?UTF-8?q?=20lint=20workflow=20for=20pull=20requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/lint.yml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..6cbfc6d --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,26 @@ +name: "Check Deno code" + +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + check-code: + name: "Check Deno code" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + + - name: Check formatting + run: deno fmt --check + + - name: Check linting + run: deno lint From 19a588ac258f7db09b7660d272eda9d0a1fc2c46 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Tue, 13 Jan 2026 08:45:23 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=80=20ci:=20add=20Docker=20build?= =?UTF-8?q?=20and=20push=20workflow,=20remove=20old=20Deno=20check=20workf?= =?UTF-8?q?low?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ .gitea/workflows/main.yml | 26 -------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) create mode 100644 .gitea/workflows/deploy.yml delete mode 100644 .gitea/workflows/main.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..7e44244 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: "Build and push image" + +on: + push: + branches: + - main + +jobs: + deploy: + name: "Build Docker image" + runs-on: ubuntu-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: registry.docker.polytech.djalim.fr + username: ${{ secrets.registry_login }} + password: ${{ secrets.registry_pass }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: registry.docker.polytech.djalim.fr/polympr:latest diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml deleted file mode 100644 index 6cbfc6d..0000000 --- a/.gitea/workflows/main.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: "Check Deno code" - -on: - pull_request: - branches: - - main - -permissions: - contents: read - -jobs: - check-code: - name: "Check Deno code" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: denoland/setup-deno@v2 - with: - deno-version: v2.x - - - name: Check formatting - run: deno fmt --check - - - name: Check linting - run: deno lint