Pipeline
Laravel CI-CD (Gitea) / Tests Unitaires (push) Failing after 3s Details
Laravel CI-CD (Gitea) / Déploiement Portainer (push) Has been skipped Details
Laravel CI-CD (Gitea) / Build & Push Docker (push) Has been skipped Details

This commit is contained in:
Leon 2026-03-12 14:59:35 +01:00
parent 902c919fa9
commit a5a246ad50
1 changed files with 6 additions and 7 deletions

View File

@ -21,10 +21,7 @@ jobs:
DB_DATABASE: ":memory:"
with:
args: |
bash -c "apt-get update && apt-get install -y libicu-dev && \
docker-php-ext-configure intl && docker-php-ext-install intl && \
composer install --no-interaction && \
php artisan test"
bash -c "composer install --no-interaction && php artisan test"
build:
name: "Build & Push Docker"
@ -36,7 +33,8 @@ jobs:
uses: actions/checkout@v4
- name: Login to Gitea Registry
uses: actions/docker/login@v2
# CORRECTION ICI : Le bon nom de l'action
uses: docker/login-action@v3
with:
registry: ${{ github.server_url }}
username: ${{ github.actor }}
@ -44,14 +42,15 @@ jobs:
- name: Build and Push
run: |
# On utilise l'image du serveur Gitea
# On extrait le domaine du serveur (ex: gitea.leonmorival.com)
REGISTRY=$(echo "${{ github.server_url }}" | sed -e 's|https://||')
IMAGE="$REGISTRY/${{ github.repository }}:latest"
docker build -t "$IMAGE" .
docker push "$IMAGE"
deploy:
name: "Déploiement Simplifié"
name: "Déploiement Portainer"
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest