From c6b30d71e3c4168709a7154cbf6476534729a9ce Mon Sep 17 00:00:00 2001 From: rf-opssupport <84499879+rf-opssupport@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:22:01 +0530 Subject: [PATCH] Update aha-prod-ci-cd.yml --- .github/workflows/aha-prod-ci-cd.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/aha-prod-ci-cd.yml b/.github/workflows/aha-prod-ci-cd.yml index 35e8eb03..08333822 100755 --- a/.github/workflows/aha-prod-ci-cd.yml +++ b/.github/workflows/aha-prod-ci-cd.yml @@ -105,6 +105,19 @@ jobs: restore-keys: | ${{ runner.os }}-buildx- + - name: Build and push + id: docker_build + uses: docker/build-push-action@v3 + with: + context: ./ + file: ./Dockerfile + builder: ${{ steps.buildx.outputs.name }} + build-args: ORIGIN=${{ env.ORIGIN }} + push: true + tags: ${{ steps.login-ecr.outputs.registry }}/rean-admin-portal:${{ steps.vars.outputs.branch }}_${{ steps.vars.outputs.sha_short }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache + - name: Download task definition run: | aws ecs describe-task-definition --task-definition ${{ secrets.TASK_DEFINTION_NAME }} \