chore: setup commitlint and git hooks
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user