From e4cf806266e55e91aedb94458f7a3aecfc4afe8a Mon Sep 17 00:00:00 2001 From: cp-sumi-k Date: Fri, 15 Sep 2023 18:26:00 +0530 Subject: [PATCH] Add latest tag for blogs --- .github/workflows/deploy-dev.yml | 5 +---- infrastructure/template.yml | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index d47f504e3..cfcdaad22 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -4,8 +4,6 @@ on: repository_dispatch: types: [blog-taskdefinition] push: - branches: - - "master" jobs: deploy-dev: @@ -85,5 +83,4 @@ jobs: ClusterName=canopas-website-dev, ImageTag=${{ github.sha }}-${{ github.run_attempt }}-dev-frontend, BackendImageTag=${{ github.sha }}-${{ github.run_attempt }}-dev-backend, - NginxImageTag=${{ github.sha }}-${{ github.run_attempt }}-dev-nginx, - BlogImageTag=${{ github.event.client_payload.imageTag }} + NginxImageTag=${{ github.sha }}-${{ github.run_attempt }}-dev-nginx diff --git a/infrastructure/template.yml b/infrastructure/template.yml index 8ff5b1927..b7559b96f 100644 --- a/infrastructure/template.yml +++ b/infrastructure/template.yml @@ -76,9 +76,6 @@ Parameters: NginxImageTag: Type: String Description: NGINX Docker image tag - BlogImageTag: - Type: String - Description: Blog Docker image tag Resources: TaskDefinition: @@ -198,7 +195,7 @@ Resources: Cpu: 512 Essential: true Image: - Fn::Sub: ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/canopas-blog:${BlogImageTag} + Fn::Sub: ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/canopas-blog:latest PortMappings: - ContainerPort: 3000 HostPort: 3000