Skip to content

Commit 5e20d1b

Browse files
Rodrigo Dos SantosRodrigo Dos Santos
authored andcommitted
Fixed AWS ECS Configuration - build authentication-service
1 parent 0e11c2e commit 5e20d1b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/.aws/authentication-service-task-definition.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"name": "SPRING_DATA_MONGODB_URI",
33-
"value": "mongodb+srv://mongoadmin:zitfoh-zynwU9-kivgod@serverlessinstance0.vhszn.mongodb.net"
33+
"value": "$SPRING_DATA_MONGODB_URI"
3434
},
3535
{
3636
"name": "OPENTRACING_JAEGER_ENABLED",
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"name": "COM_MICROSERVICE_AUTHENTICATION_JWT_KEY_VALUE",
45-
"value": "dGVzdC1zcHJpbmctYm9vdC1hcHBsaWNhdGlvbi13aXRoLXJlYWN0LXNpbmdsZS1wYWdlLWFwcGxpY2F0aW9uCg=="
45+
"value": "$COM_MICROSERVICE_AUTHENTICATION_JWT_KEY_VALUE"
4646
},
4747
{
4848
"name": "SPRING_PROFILES_ACTIVE",

.github/workflows/docker-build-push-image-authentication-service.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,18 @@ jobs:
9191
platforms: linux/amd64,linux/arm64
9292
push: true
9393
#tags: fielcapao/microservices-design-patterns-authentication-service:latest
94-
tags: $ECR_REPOSITORY:latest
94+
tags: ${{ secrets.ECR_REPOSITORY }}:latest
9595

9696
- name: Fill in the new image ID in the Amazon ECS task definition
9797
id: task-def
98-
uses: aws-actions/amazon-ecs-render-task-definition@97587c9d45a4930bf0e3da8dd2feb2a463cf4a3a
98+
uses: aws-actions/amazon-ecs-render-task-definition@v1
9999
with:
100100
task-definition: ${{ env.ECS_TASK_DEFINITION }}
101101
container-name: ${{ env.CONTAINER_NAME }}
102102
image: ${{ steps.build-image.outputs.image }}
103103

104104
- name: Deploy Amazon ECS task definition
105-
uses: aws-actions/amazon-ecs-deploy-task-definition@de0132cf8cdedb79975c6d42b77eb7ea193cf28e
105+
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
106106
with:
107107
task-definition: ${{ steps.task-def.outputs.task-definition }}
108108
service: ${{ env.ECS_SERVICE }}

0 commit comments

Comments
 (0)