From d6aff67068263ec557f4f7f82526105b9471ed42 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Vuotto Date: Thu, 2 Jun 2022 20:39:32 +0000 Subject: [PATCH] Deploy improvements - Rename .aws/task-definition.json -> .aws/testnet.json - Fix container image source - Fix container log group and prefix --- .aws/{task-definition.json => testnet.json} | 6 +++--- .github/workflows/testnet.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename .aws/{task-definition.json => testnet.json} (80%) diff --git a/.aws/task-definition.json b/.aws/testnet.json similarity index 80% rename from .aws/task-definition.json rename to .aws/testnet.json index 147ab9ffc..145bc4dc5 100644 --- a/.aws/task-definition.json +++ b/.aws/testnet.json @@ -10,13 +10,13 @@ "containerDefinitions":[ { "name":"rif-gateways-ccbridge-testnet", - "image":"094889878379.dkr.ecr.us-west-2.amazonaws.com/rif-wallet-services-dev:latest", + "image":"094889878379.dkr.ecr.us-west-2.amazonaws.com/rif-gateways-ccbridge:latest", "logConfiguration":{ "logDriver":"awslogs", "options":{ "awslogs-region":"us-west-2", - "awslogs-group":"rif-gateways-ccbridge", - "awslogs-stream-prefix":"rif-gateways" + "awslogs-group":"/ecs/rif-gateways-ccbridge", + "awslogs-stream-prefix":"testnet" } } } diff --git a/.github/workflows/testnet.yml b/.github/workflows/testnet.yml index b00dcdcca..cdef80de8 100644 --- a/.github/workflows/testnet.yml +++ b/.github/workflows/testnet.yml @@ -5,11 +5,11 @@ on: types: [published] env: - AWS_REGION: us-west-2 + AWS_REGION: ${{ secrets.AWS_REGION }} ECR_REPOSITORY: rif-gateways-ccbridge ECS_SERVICE: ccbridge_services_testnet # set this to your Amazon ECS service name ECS_CLUSTER: rif-gateways-ccbridge # set this to your Amazon ECS cluster name - ECS_TASK_DEFINITION: .aws/task-definition.json # set this to the path to your Amazon ECS task definition + ECS_TASK_DEFINITION: .aws/testnet.json # set this to the path to your Amazon ECS task definition # file, e.g. .aws/task-definition.json CONTAINER_NAME: rif-gateways-ccbridge-testnet # set this to the name of the container in the # containerDefinitions section of your task definition