add deploy job
All checks were successful
Tests / test (push) Successful in 3s
Tests / deploy (push) Successful in 6s

This commit is contained in:
Your Name
2026-04-15 09:30:39 +00:00
parent 69d1994dad
commit e33be8f705
3 changed files with 16 additions and 1 deletions

View File

@@ -13,3 +13,10 @@ jobs:
run: |
chmod +x tests.sh
./tests.sh
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Déployer le site
run: docker compose up -d --build

6
docker-compose.yml Normal file
View File

@@ -0,0 +1,6 @@
services:
mon-site8:
build: .
container_name: site-eleve8
ports:
- "8870:80"

2
dockerfile Normal file
View File

@@ -0,0 +1,2 @@
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/