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 - name: ⚙️ Prepare Laravel
run: | run: |
cp .env.example .env cp .env.example .env
php artisan key:generate php artisan key:generate
touch database/database.sqlite touch database/database.sqlite
php artisan migrate --force php artisan migrate --force
@@ -55,48 +51,28 @@ jobs:
docker: docker:
name: 🐳 Build & Push Image name: 🐳 Build & Push Image
needs: test needs: test
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 📥 Checkout - name: 📥 Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 🔐 Login Registry Gitea - name: 🔐 Login Registry Gitea
run: | run: |
docker login git.leonmorival.xyz \ docker login git.leonmorival.xyz \
-u "${{ secrets.REGISTRY_USER }}" \ -u "${{ secrets.REGISTRY_USER }}" \
-p "${{ secrets.REGISTRY_PASSWORD }}" -p "${{ secrets.REGISTRY_PASSWORD }}"
- name: 🏗️ Build image - name: 🏗️ Build image
run: | run: |
docker build \ docker build \
-t git.leonmorival.xyz/leonm/landing-api:latest \ -t git.leonmorival.xyz/leonm/landing-api:latest \
-t git.leonmorival.xyz/leonm/landing-api:${{ github.sha }} \ -t git.leonmorival.xyz/leonm/landing-api:${{ github.sha }} \
. .
- name: 📤 Push image - name: 📤 Push image
run: | run: |
docker push git.leonmorival.xyz/leonm/landing-api:latest docker push git.leonmorival.xyz/leonm/landing-api:latest
docker push git.leonmorival.xyz/leonm/landing-api:${{ github.sha }} docker push git.leonmorival.xyz/leonm/landing-api:${{ github.sha }}