From f18529ce68a95d07db491d6933cc516687a3f44f Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Fri, 20 Dec 2024 18:42:27 +0000 Subject: [PATCH] Enable prod web and api prod deployment --- .github/workflows/publish-api.yml | 27 +++++++++++++-------------- .github/workflows/publish-web.yml | 27 +++++++++++++-------------- 2 files changed, 26 insertions(+), 28 deletions(-) diff --git a/.github/workflows/publish-api.yml b/.github/workflows/publish-api.yml index eb7465aa..06f28851 100644 --- a/.github/workflows/publish-api.yml +++ b/.github/workflows/publish-api.yml @@ -147,17 +147,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # Uncomment when infra in AWS in PROD environment has been configured - # - name: Deploy to ${{ env.ENVIRONMENT }} - # uses: ./.github/workflows/actions/deploy-app - # with: - # environment: ${{ env.ENVIRONMENT }} - # aws_account: ${{ vars.AWS_ACCOUNT }} - # region: ${{ vars.AWS_REGION }} - # app_name: ${{ vars.APP_NAME }} - # aws_role_arn: ${{ vars.AWS_ROLE_ARN }} - # ghcr_token: ${{ secrets.GITHUB_TOKEN }} - # github_image_repo: ${{ env.GITHUB_IMAGE_REPO }} - # image_name: ${{ env.IMAGE_NAME }} - # tier_name: api - # short_sha: ${{ needs.build.outputs.short_sha }} + - name: Deploy to ${{ env.ENVIRONMENT }} + uses: ./.github/workflows/actions/deploy-app + with: + environment: ${{ env.ENVIRONMENT }} + aws_account: ${{ vars.AWS_ACCOUNT }} + region: ${{ vars.AWS_REGION }} + app_name: ${{ vars.APP_NAME }} + aws_role_arn: ${{ vars.AWS_ROLE_ARN }} + ghcr_token: ${{ secrets.GITHUB_TOKEN }} + github_image_repo: ${{ env.GITHUB_IMAGE_REPO }} + image_name: ${{ env.IMAGE_NAME }} + tier_name: api + short_sha: ${{ needs.build.outputs.short_sha }} diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index 176813c7..f9f20c01 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -153,17 +153,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # Uncomment when infra in AWS in PROD environment has been configured - # - name: Deploy to ${{ env.ENVIRONMENT }} - # uses: ./.github/workflows/actions/deploy-app - # with: - # environment: ${{ env.ENVIRONMENT }} - # aws_account: ${{ vars.AWS_ACCOUNT }} - # region: ${{ vars.AWS_REGION }} - # app_name: ${{ vars.APP_NAME }} - # aws_role_arn: ${{ vars.AWS_ROLE_ARN }} - # ghcr_token: ${{ secrets.GITHUB_TOKEN }} - # github_image_repo: ${{ env.GITHUB_IMAGE_REPO }} - # image_name: ${{ env.WEB_IMAGE_NAME }} - # tier_name: web - # short_sha: ${{ needs.build.outputs.short_sha }} \ No newline at end of file + - name: Deploy to ${{ env.ENVIRONMENT }} + uses: ./.github/workflows/actions/deploy-app + with: + environment: ${{ env.ENVIRONMENT }} + aws_account: ${{ vars.AWS_ACCOUNT }} + region: ${{ vars.AWS_REGION }} + app_name: ${{ vars.APP_NAME }} + aws_role_arn: ${{ vars.AWS_ROLE_ARN }} + ghcr_token: ${{ secrets.GITHUB_TOKEN }} + github_image_repo: ${{ env.GITHUB_IMAGE_REPO }} + image_name: ${{ env.WEB_IMAGE_NAME }} + tier_name: web + short_sha: ${{ needs.build.outputs.short_sha }} \ No newline at end of file