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 14, 2024
1 parent 4046cf0 commit fcb38ef
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,18 @@ runs:
# DEPLOY TO DOCKER
############################################################################################################

- name: "Docker"
shell: bash
run: |
echo "CSPROJ_EXIST: ${{steps.check_files.outputs.CSPROJ_EXIST}}"
echo "SLN_EXIST: ${{steps.check_files.outputs.SLN_EXIST}}"
echo "DOCKERFILE_EXIST: ${{steps.check_files.outputs.DOCKERFILE_EXIST}}"
echo "HEALTHCHECK_EXIST: ${{steps.check_files.outputs.HEALTHCHECK_EXIST}}"
echo "DOCKER_APP_OWNER: ${{inputs.DOCKER_APP_OWNER}}"
echo "DOCKER_APP_NAME: ${{inputs.DOCKER_APP_NAME}}"
echo "DEPLOY: ${{env.DEPLOY}}"
ecjo "Registry: ${{inputs.AWS_CONTAINER_REGISTRY}}
- name: "Copy docker: Dockerfile"
if: |-
steps.check_files.outputs.CSPROJ_EXIST == 'true' &&
Expand All @@ -385,7 +397,7 @@ runs:
inputs.DOCKER_APP_NAME != '' &&
env.DEPLOY == 'true'
shell: bash
run: cp "${{github.workspace}}/Dockerfile" "${{github.workspace}}/server-dist/linux-arm64"
run: cp "${{github.workspace}}/Dockerfile" "${{github.workspace}}/server-dist/${{inputs.DOTNET_DOCKER_PLATFORM}}"

- name: "Copy docker: healthcheck"
if: |-
Expand All @@ -395,7 +407,7 @@ runs:
inputs.DOCKER_APP_NAME != '' &&
env.DEPLOY == 'true'
shell: bash
run: cp "${{github.workspace}}/healthcheck" "${{github.workspace}}/server-dist/linux-arm64"
run: cp "${{github.workspace}}/healthcheck" "${{github.workspace}}/server-dist/${{inputs.DOTNET_DOCKER_PLATFORM}}"

- name: "Dotnet: Build Docker Container"
if: |-
Expand All @@ -412,7 +424,7 @@ runs:
APP_OWNER: ${{inputs.DOCKER_APP_OWNER}}
APP_NAME: ${{inputs.DOCKER_APP_NAME}}
AWS_CONTAINER_REGISTRY: ${{inputs.AWS_CONTAINER_REGISTRY}}
CONTAINER_SOURCE: ${{github.workspace}}/server-dist/linux-arm64
CONTAINER_SOURCE: ${{github.workspace}}/server-dist/${{inputs.DOTNET_DOCKER_PLATFORM}}
CONTAINER_PLATFORM: ${{inputs.DOTNET_CONTAINER_PLATFORM}}

- name: "Dotnet: SQL Deploy"
Expand Down

0 comments on commit fcb38ef

Please sign in to comment.