Skip to content

Commit

Permalink
Merge pull request #189 from unboxed/use-correct-names-for-tasks-and-…
Browse files Browse the repository at this point in the history
…containers

Use correct names everywhere
  • Loading branch information
pixeltrix authored Dec 18, 2023
2 parents 4aa67b0 + 6ee19e7 commit e00e921
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,23 +173,23 @@ jobs:
- name: Download task definition for ${{ matrix.service_type }} and strip unused properties
run: |
aws ecs describe-task-definition --task-definition bops-${{ matrix.service_type }}-${{ inputs.environment-name }} --query taskDefinition | \
aws ecs describe-task-definition --task-definition bops-applicants-${{ matrix.service_type }}-${{ inputs.environment-name }} --query taskDefinition | \
jq -r 'del(.compatibilities, .taskDefinitionArn, .requiresAttributes, .revision, .status, .registeredAt, .registeredBy)' > ${{ matrix.service_type }}.json
- name: Generate task definition for ${{ inputs.environment-name }}
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ${{ matrix.service_type }}.json
container-name: bops
container-name: bops-applicants
image: ${{ steps.ecr-image.outputs.uri }}

- name: Deploy ${{ matrix.service_type }}
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
if: matrix.service_type != 'web'
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: bops-${{ matrix.service_type }}-${{ inputs.environment-name }}
service: bops-applicants-${{ matrix.service_type }}-${{ inputs.environment-name }}
cluster: bops-${{ inputs.environment-name }}
wait-for-service-stability: true

Expand All @@ -198,11 +198,11 @@ jobs:
if: matrix.service_type == 'web'
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: bops-${{ matrix.service_type }}-${{ inputs.environment-name }}
service: bops-applicants-${{ matrix.service_type }}-${{ inputs.environment-name }}
cluster: bops-${{ inputs.environment-name }}
wait-for-service-stability: true
codedeploy-appspec: .aws/appspec.yml
codedeploy-application: bops-${{ inputs.environment-name }}
codedeploy-application: bops-applicants-${{ inputs.environment-name }}
codedeploy-deployment-group: default

tag-release:
Expand Down

0 comments on commit e00e921

Please sign in to comment.