Skip to content

add h1 tag #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,22 @@ jobs:
docker push ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:latest


- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: demo
image: ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.${{ env.REGION }}.amazonaws.com/sample:${{ steps.vars.outputs.sha_short }}

- name: Deploy to Amazon ECS
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
with:
task-definition: task-definition.json
service: demo-tmcdapne2
cluster: demo-tmcdapne2
wait-for-service-stability: true
codedeploy-appspec: appspec.json
codedeploy-application: demo_app
codedeploy-deployment-group: demo_app

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea

build
bin

.gradle
14 changes: 14 additions & 0 deletions appspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 0.0,
"Resources": [
{
"TargetService": {
"Type": "AWS::ECS::Service",
"Properties": {
"TaskDefinition": "[TaskDefinition ARN]",
"LoadBalancerInfo": {"ContainerName": "demo", "ContainerPort": 8080},
},
}
}
],
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class SampleController {
@GetMapping("/hello")
@ResponseStatus(HttpStatus.OK)
public String getHello(){
return "Hello, Terraform Master Class";
return "<h1>Hello, Terraform Master Class</h1>";
}
}
Loading