ajout cicd

This commit is contained in:
Ploush 2026-04-09 15:23:15 +02:00
parent 303fc7bcb5
commit 2e31578159
161 changed files with 159 additions and 6 deletions

44
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,44 @@
# ============================================================
# GitHub Actions — Build + Push image → GHCR
# Déclenche un redéploiement automatique via webhook Portainer
# ============================================================
name: Build & Deploy
on:
push:
branches:
- master
jobs:
build-and-push:
name: Build image et push sur GHCR
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # Nécessaire pour pousser sur ghcr.io
steps:
- name: Checkout du code
uses: actions/checkout@v4
- name: Connexion au GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} # Automatique, rien à configurer
- name: Build et push de l'image Docker
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/apache/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}:latest
- name: Déclenche le redéploiement Portainer
run: |
curl -s -X POST "${{ secrets.PORTAINER_WEBHOOK_URL }}"
# PORTAINER_WEBHOOK_URL est un secret GitHub (voir étapes d'installation)

View file

View file

View file

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

View file

Before

Width:  |  Height:  |  Size: 4.7 MiB

After

Width:  |  Height:  |  Size: 4.7 MiB

View file

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace DoctrineMigrations; namespace app\migrations;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace DoctrineMigrations; namespace app\migrations;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace DoctrineMigrations; namespace app\migrations;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace DoctrineMigrations; namespace app\migrations;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace DoctrineMigrations; namespace app\migrations;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace DoctrineMigrations; namespace app\migrations;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;

Some files were not shown because too many files have changed in this diff Show more