feat: try fix ci.yml
CI / 🧪 Tests Laravel (push) Failing after 50s
CI / 🐳 Build & Push Image (push) Has been skipped

This commit is contained in:
2026-07-10 16:02:41 +02:00
parent 5bfc486a3c
commit c594525d04
-24
View File
@@ -38,13 +38,9 @@ jobs:
- name: ⚙️ Prepare Laravel
run: |
cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate --force
@@ -55,48 +51,28 @@ jobs:
docker:
name: 🐳 Build & Push Image
needs: test
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🔐 Login Registry Gitea
run: |
docker login git.leonmorival.xyz \
-u "${{ secrets.REGISTRY_USER }}" \
-p "${{ secrets.REGISTRY_PASSWORD }}"
- name: 🏗️ Build image
run: |
docker build \
-t git.leonmorival.xyz/leonm/landing-api:latest \
-t git.leonmorival.xyz/leonm/landing-api:${{ github.sha }} \
.
- name: 📤 Push image
run: |
docker push git.leonmorival.xyz/leonm/landing-api:latest
docker push git.leonmorival.xyz/leonm/landing-api:${{ github.sha }}