Skip to content

Commit 87e4f42

Browse files
Cleanup deployment
- Remove unused components - Cleanup deployment workflow
1 parent fb83f4c commit 87e4f42

File tree

5 files changed

+4
-271
lines changed

5 files changed

+4
-271
lines changed

.github/workflows/deploy-application.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ jobs:
137137
with:
138138
name: ${{ inputs.environment }}-good-job-task-definition
139139
path: ${{ steps.create-good-job-task-definition.outputs.task-definition }}
140+
140141
approve-deployments:
141142
name: Wait for approval if required
142143
runs-on: ubuntu-latest
@@ -169,16 +170,12 @@ jobs:
169170
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
170171
with:
171172
task-definition: ${{ needs.prepare-deployment.outputs.web-task-definition-path }}
172-
- name: Create appspec.yml
173-
run: |
174-
cp config/templates/appspec.yaml.tpl appspec.yaml
175-
sed -i 's|<TASK_DEFINITION_ARN>||g' appspec.yaml
176173
- name: Deploy web service with CodeDeploy
177174
id: deploy-web-service
178175
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
179176
with:
180177
task-definition: ${{ needs.prepare-deployment.outputs.web-task-definition-path }}
181-
codedeploy-appspec: appspec.yaml
178+
codedeploy-appspec: config/templates/appspec.yaml
182179
cluster: ${{ env.cluster_name }}
183180
service: mavis-${{ inputs.environment }}-web
184181
codedeploy-application: mavis-${{ inputs.environment }}

config/container_variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ environments:
3030
sandbox-beta:
3131
RAILS_ENV: staging
3232
SENTRY_ENVIRONMENT: sandbox-beta
33-
TEST_KEY: test-value
33+
TEST: TEST
3434

3535
# Tunable Variables Configuration
3636
# This section specifies environment-specific variables that will be populated into the SSM parameter store

config/templates/appspec.yaml.tpl renamed to config/templates/appspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Resources:
1010
- TargetService:
1111
Type: AWS::ECS::Service
1212
Properties:
13-
TaskDefinition: "<TASK_DEFINITION_ARN>"
13+
TaskDefinition: ""
1414
LoadBalancerInfo:
1515
ContainerName: "application"
1616
ContainerPort: "4000"

config/templates/task-definition.json.tpl

Lines changed: 0 additions & 47 deletions
This file was deleted.

script/populate_task_definition.py

Lines changed: 0 additions & 217 deletions
This file was deleted.

0 commit comments

Comments
 (0)