Skip to content

Commit

Permalink
feat: Add image build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dinushchathurya committed Dec 26, 2024
1 parent 1075e56 commit 316fe34
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
File renamed without changes.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Database Changes

on:
push:
branches:
- dev
pull_request:
branches:
- stg
- prod
workflow_dispatch:

jobs:
deploy-dev:
name: Deploy to Dev
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
uses: ./.github/workflows/deploy-database-env.yml
with:
environment: dev

deploy-stg:
name: Deploy to Stg
if: github.event_name == 'pull_request' && github.base_ref == 'stg' && github.event.pull_request.merged == true
uses: ./.github/workflows/deploy-database-env.yml
with:
environment: stg

deploy-prod:
name: Deploy to Prod
if: github.event_name == 'pull_request' && github.base_ref == 'prod' && github.event.pull_request.merged == true
uses: ./.github/workflows/deploy-database-env.yml
with:
environment: prod

0 comments on commit 316fe34

Please sign in to comment.