From 96869003afe933a996c31c511c23c8fa38f217cc Mon Sep 17 00:00:00 2001 From: Kerboul Date: Wed, 11 Dec 2024 17:57:45 +0100 Subject: [PATCH] chore: update 1 file and delete 1 file --- .gitea/workflows/deploy.yml | 24 ++++++++++++++++++++++-- .gitlab-ci.yml | 9 --------- 2 files changed, 22 insertions(+), 11 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1c1680d..06e82b4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -6,7 +6,27 @@ on: - main # Déclenche l'action pour la branche principale jobs: - ssh-connect: + + site-check: + runs-on: ubuntu-latest + # Linting du code HTML, CSS et JavaScript + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm install + + - name: Lint HTML + run: npx htmlhint . + + - name: Lint CSS + run: npx stylelint "**/*.css" + + - name: Lint JavaScript + run: npx eslint . + + deployment: runs-on: ubuntu-latest # Utilisation de l'image Ubuntu pour l'environnement de job steps: # Étape 1: Setup SSH @@ -44,4 +64,4 @@ jobs: run: | # Supprimer la clé privée pour des raisons de sécurité (optionnel) rm -f ~/.ssh/id_rsa - rm -f ~/.ssh/known_hosts + rm -f ~/.ssh/known_hosts \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 97e9de5..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,9 +0,0 @@ -stages: - - deploy - -deploy_timelapse: - stage: deploy - script: - - ssh kerboul@172.17.0.1 "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh -o" - only: - - main