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 Dec 6, 2024
1 parent 83d43ee commit e329407
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ inputs:
SLEET_FEED:
description: 'Sleet feed to push packages to'
required: false
DOTNET_DOCKER_PLATFORM:
description: 'Dotnet docker platform (e.g. linux-arm64)'
required: false
DOTNET_CONTAINER_PLATFORM:
description: 'Docker container platform (e.g. linux/arm64)'
required: false

# DEPLOYMENT
PROJECT_TO_PUBLISH:
Expand Down Expand Up @@ -184,6 +190,7 @@ runs:
[[ -f Wallet.json ]] && echo 'NPM_SIGNING_EXIST=true' >> "$GITHUB_OUTPUT" || echo 'NPM_SIGNING_EXIST=false' >> "$GITHUB_OUTPUT"
[[ -f Dockerfile && '${{hashfiles('Dockerfile')}}' != '' ]] && echo 'DOCKERFILE_EXIST=true' >> "$GITHUB_OUTPUT" || echo 'DOCKERFILE_EXIST=false' >> "$GITHUB_OUTPUT"
[[ -f healthcheck && '${{hashfiles('healthcheck')}}' != '' ]] && echo 'HEALTHCHECK_EXIST=true' >> "$GITHUB_OUTPUT" || echo 'HEALTHCHECK_EXIST=false' >> "$GITHUB_OUTPUT"
[[ -f healthcheck && '${{hashfiles('cloudformation.json')}}' != '' ]] && echo 'CLOUDFORMATION_EXIST=true' >> "$GITHUB_OUTPUT" || echo 'CLOUDFORMATION_EXIST=false' >> "$GITHUB_OUTPUT"
- name: "Check Files Results"
uses: actions/[email protected]
Expand Down Expand Up @@ -405,7 +412,7 @@ runs:
APP_NAME: ${{inputs.DOCKER_APP_NAME}}
AWS_CONTAINER_REGISTRY: ${{inputs.AWS_CONTAINER_REGISTRY}}
CONTAINER_SOURCE: ${{github.workspace}}/server-dist/linux-arm64
CONTAINER_PLATFORM: linux/arm64
CONTAINER_PLATFORM: ${{inputs.DOTNET_CONTAINER_PLATFORM}}

- name: "Dotnet: SQL Deploy"
if: |-
Expand All @@ -431,6 +438,7 @@ runs:
if: |-
steps.check_files.outputs.CSPROJ_EXIST == 'true' &&
steps.check_files.outputs.SLN_EXIST == 'true' &&
steps.check_files.outputs.CLOUDFORMATION_EXIST == 'true' &&
inputs.CLOUD_FORMATION_DEPLOY == 'true' &&
inputs.DOCKER_APP_NAME != '' &&
env.DEPLOY == 'true'
Expand Down

0 comments on commit e329407

Please sign in to comment.