chore: setup commitlint and git hooks
Some checks failed
Commit Message Check / conventional-commits (pull_request) Failing after 6s
Deploy monie-backend to dev (kaniko) / build-and-deploy (pull_request) Successful in 0s
Deploy monie-backend (kaniko) / build-and-deploy (pull_request) Successful in 0s

This commit is contained in:
2026-04-03 19:34:33 +03:00
parent 508bbdf5cc
commit 18f167418d
7 changed files with 108 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
# .gitea/workflows/deploy-prod.yml
name: Deploy monie-backend (kaniko)
on:
push:
branches: [ main ]
pull_request:
jobs:
build-and-deploy:
@@ -27,7 +27,12 @@ jobs:
REPO_PATH: monie/monie-backend.git
steps:
- name: Skip deploy for pull requests
if: github.event_name == 'pull_request'
run: echo "Pull request check passed. Deploy runs only on push to main."
- name: Build & push image with Kaniko (K8s Job)
if: github.event_name == 'push'
env:
SHA: ${{ github.sha }}
REF: ${{ github.ref_name }}
@@ -120,6 +125,7 @@ jobs:
fi
- name: Deploy to prod
if: github.event_name == 'push'
env:
SHA: ${{ github.sha }}
run: |