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 2bef6aada9
7 changed files with 99 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ name: Deploy monie-backend to dev (kaniko)
on:
push:
branches: [ develop ]
pull_request:
jobs:
build-and-deploy:
@@ -26,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 develop."
- name: Debug
if: github.event_name == 'push'
run: |
set -eu
echo "sha=${{ github.sha }}"
@@ -35,6 +41,7 @@ jobs:
microk8s kubectl version --client=true
- name: Build & push with Kaniko (K8s Job)
if: github.event_name == 'push'
env:
SHA: ${{ github.sha }}
REF: ${{ github.ref_name }}
@@ -131,6 +138,7 @@ jobs:
fi
- name: Deploy to dev
if: github.event_name == 'push'
env:
SHA: ${{ github.sha }}
run: |