Skip to content

Commit

Permalink
[Actions] Updated .github/actions/build/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Sep 16, 2024
1 parent 9c27307 commit 0bc5e1c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,20 @@ inputs:
description: 'Whether to create a release in github'
required: true

# DATABASE
SQL_SERVER:
description: 'SQL Server to connect to'
required: false
SQL_DB:
description: 'Database to deploy to'
required: false
SQL_USER:
description: 'User to connect to the database as'
required: false
SQL_PASSWORD:
description: 'Password for SQL_USER'
required: false

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -335,6 +349,7 @@ runs:
PRODUCTION_BUILD: ${{inputs.PRODUCTION_BUILD}}
BUILD_VERSION: ${{env.BUILD_VERSION}}
BUILD_SQL: ${{steps.check_files.outputs.SQL_EXIST}}
DB_FOLDER: ${{github.workspace}}/db
NUGET_PACK: ${{inputs.NUGET_PACK}}
NUGET_FEED: ${{inputs.NUGET_FEED}}
NUGET_SYMBOL_FEED: ${{inputs.NUGET_SYMBOL_FEED}}
Expand Down Expand Up @@ -405,6 +420,23 @@ runs:
CONTAINER_SOURCE: ${{github.workspace}}/server-dist/linux-arm64
CONTAINER_PLATFORM: linux/arm64

- name: "Dotnet: SQL Deploy"
if: |-
steps.check_files.outputs.CSPROJ_EXIST == 'true' &&
steps.check_files.outputs.SLN_EXIST == 'true' &&
steps.check_files.outputs.SQL_EXIST == 'true' &&
inputs.CLOUD_FORMATION_DEPLOY == 'true' &&
inputs.DOCKER_APP_NAME != '' &&
env.DEPLOY == 'true'
uses: ./.github/actions/database-deploy-deploy
with:
BUILD_VERSION: ${{env.BUILD_VERSION}}
SQL_SERVER: ${{inputs.SQL_SERVER}}
SQL_DB: ${{inputs.SQL_DB}}
SQL_USER: ${{inputs.SQL_USER}}
SQL_PASSWORD: ${{inputs.SQL_PASSWORD}}
DB_FOLDER: ${{github.workspace}}/db

- name: "Dotnet: Cloudformation Deploy"
if: |-
steps.check_files.outputs.CSPROJ_EXIST == 'true' &&
Expand Down

0 comments on commit 0bc5e1c

Please sign in to comment.