diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index da3a01c..77c94e0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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