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