Skip to content

Commit

Permalink
fixup! feat(action): move preflight steps to custom deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
IamAbbey committed Aug 16, 2024
1 parent 5ebb955 commit 80efe7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ runs:
uses: moneymeets/action-ecs-deploy/custom-deploy-steps/run-preflight@feature/MD-7491-improve-ecs-deploy
with:
working_directory: ${{ github.action_path }}
application_id: ${{ inputs.ecr_repository }}-preflight-${{ inputs.environment }}
ecr_repository: ${{ inputs.ecr_repository }}
environment: ${{ inputs.environment }}
image_uri: ${{ steps.get-image-uri.outputs.image-uri }}
deployment_tag: ${{ inputs.deployment_tag }}
aws_access_key_id: ${{ inputs.aws_access_key_id }}
Expand Down
9 changes: 6 additions & 3 deletions custom-deploy-steps/run-preflight/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ inputs:
working_directory:
description: Action working directory
required: true
application_id:
description: Application ID also the task definition name in this case
ecr_repository:
description: ECR repository to pull image from
required: true
environment:
description: Deployment environment
required: true
image_uri:
description: The URI of the container image to insert into the ECS task definition
Expand Down Expand Up @@ -43,7 +46,7 @@ runs:
id: deploy-preflight-task-definition
uses: moneymeets/action-ecs-deploy/custom-deploy-steps/create-task-definition@master
with:
working_directory: ${{ github.action_path }}
working_directory: ${{ inputs.working_directory }}
application_id: ${{ inputs.ecr_repository }}-preflight-${{ inputs.environment }}
image_uri: ${{ inputs.image_uri }}
deployment_tag: ${{ inputs.deployment_tag }}
Expand Down

0 comments on commit 80efe7f

Please sign in to comment.