chore: update 1 file and delete 1 file
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user