File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -89,17 +89,29 @@ jobs:
89
89
id : create-web-task-definition
90
90
uses : aws-actions/amazon-ecs-render-task-definition@v1
91
91
with :
92
- task-definition : config/environments/ ${{ inputs.environment }}-web-task-definition.json
92
+ task-definition-family : " mavis-web-task-definition- ${{ inputs.environment }}"
93
93
container-name : " application"
94
94
image : " ${{ env.aws_account_id }}.dkr.ecr.eu-west-2.amazonaws.com/mavis/webapp@${{ steps.get-image-digest.outputs.digest }}"
95
+ environment-variables : | # TODO Fetch these values from e.g. container_variables.yml
96
+ RAILS_ENV=staging
97
+ TEST=test
98
+ secrets : |
99
+ RAILS_MASTER_KEY=/copilot/mavis/secrets/STAGING_RAILS_MASTER_KEY
100
+ TESTSECRET=test
95
101
- name : Populate good-job task definition
96
102
if : inputs.server_types == 'good-job' || inputs.server_types == 'all'
97
103
id : create-good-job-task-definition
98
104
uses : aws-actions/amazon-ecs-render-task-definition@v1
99
105
with :
100
- task-definition : config/environments/ ${{ inputs.environment }}-good-job-task-definition.json
106
+ task-definition-family : " mavis-good-job-task-definition- ${{ inputs.environment }}"
101
107
container-name : " application"
102
108
image : " ${{ env.aws_account_id }}.dkr.ecr.eu-west-2.amazonaws.com/mavis/webapp@${{ steps.get-image-digest.outputs.digest }}"
109
+ environment-variables : | # TODO Fetch these values from e.g. container_variables.yml
110
+ RAILS_ENV=stagingg
111
+ TEST=test
112
+ secrets : |
113
+ RAILS_MASTER_KEY=/copilot/mavis/secrets/STAGING_RAILS_MASTER_KEY
114
+ TESTSECRET=test
103
115
- name : Upload artifact for web task definition
104
116
if : inputs.server_types == 'web' || inputs.server_types == 'all'
105
117
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments