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