Skip to content

Commit

Permalink
Add latest tag for blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Sep 15, 2023
1 parent a9849ef commit e4cf806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
repository_dispatch:
types: [blog-taskdefinition]
push:
branches:
- "master"

jobs:
deploy-dev:
Expand Down Expand Up @@ -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
5 changes: 1 addition & 4 deletions infrastructure/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ Parameters:
NginxImageTag:
Type: String
Description: NGINX Docker image tag
BlogImageTag:
Type: String
Description: Blog Docker image tag

Resources:
TaskDefinition:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4cf806

Please sign in to comment.