add deploy job
This commit is contained in:
@@ -12,4 +12,11 @@ jobs:
|
||||
- name: Lancer les tests
|
||||
run: |
|
||||
chmod +x tests.sh
|
||||
./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
6
docker-compose.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
mon-site8:
|
||||
build: .
|
||||
container_name: site-eleve8
|
||||
ports:
|
||||
- "8870:80"
|
||||
2
dockerfile
Normal file
2
dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM nginx:alpine
|
||||
COPY index.html /usr/share/nginx/html/
|
||||
Reference in New Issue
Block a user