feat: try fix ci.yml
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user