mirror of https://github.com/buster-so/buster.git
Enhance GitHub Actions workflows and Dependabot configuration
- Added new Dependabot configurations for npm packages in the /api and /web directories, scheduled for weekly updates with a limit of 10 open pull requests. - Updated the GitHub Actions workflows for both main and staging deployments to trigger on changes within the api directory, specifically for migrations, improving deployment reliability. These changes streamline dependency management and enhance the deployment process for the application.
This commit is contained in:
parent
5f2c72fbf6
commit
f7bb098ba9
|
@ -25,3 +25,26 @@ updates:
|
|||
commit-message:
|
||||
prefix: "chore"
|
||||
include: "scope"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/api"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
source-branch: "main"
|
||||
target-branch: "staging"
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- "dependencies"
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/web"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
source-branch: "main"
|
||||
target-branch: "staging"
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- "dependencies"
|
||||
commit-message:
|
||||
prefix: "chore"
|
||||
include: "scope"
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- api/**
|
||||
name: Deploy to main
|
||||
jobs:
|
||||
database-deploy:
|
||||
runs-on: blacksmith-16vcpu-ubuntu-2204
|
||||
if: contains(github.event.head_commit.modified_files, 'api/migrations/') || contains(github.event.head_commit.added_files, 'api/migrations/')
|
||||
environment: main
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
push:
|
||||
branches:
|
||||
- staging
|
||||
pull_request:
|
||||
branches:
|
||||
- staging
|
||||
paths:
|
||||
- api/**
|
||||
name: Deploy to staging
|
||||
jobs:
|
||||
database-deploy:
|
||||
runs-on: blacksmith-16vcpu-ubuntu-2204
|
||||
if: contains(github.event.head_commit.modified_files, 'api/migrations/') || contains(github.event.head_commit.added_files, 'api/migrations/')
|
||||
environment: staging
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
Loading…
Reference in New Issue