Skip to content

Commit

Permalink
feat: Integração Contínua com Amazon ECR e ECS
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacAndra committed Sep 18, 2024
1 parent 1a7e8d1 commit bf80da4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,25 @@ jobs:
docker push ${{ secrets.IMAGE_REPO_URL }}:${{ github.run_id }}
docker push ${{ secrets.IMAGE_REPO_URL }}:latest
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition ${{ secrets.TASK_DEFINITION_NAME }} --query taskDefinition > task-definition.json
- 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: ${{ secrets.CONTAINER_NAME }}
image: ${{ secrets.IMAGE_REPO_URL }}:latest

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: ${{ secrets.SERVICE_NAME }}
cluster: ${{ secrets.CLUSTER_NAME }}
wait-for-service-stability: true

- name: Push to Docker Hub Container Registry
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.isaacandrade.blog.config;

import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
Expand All @@ -17,7 +16,7 @@ public class OpenApiConfig {
public OpenAPI customOpenAPI(){
return new OpenAPI()
.info(new Info()
.title("Restful API with Java 17 and Spring Boot 3")
.title("Restful API with Java 17 and Spring Boot 3 - Foo")
.version("v1")
.description("API of Isaac Andrade's Website")
.termsOfService("/")
Expand Down

0 comments on commit bf80da4

Please sign in to comment.