From 7c9d79403fc395a8a2e46057c4462840addcb252 Mon Sep 17 00:00:00 2001 From: riteshsonawane1372 Date: Tue, 15 Oct 2024 14:54:08 +0530 Subject: [PATCH] secrets updated --- .github/workflows/build-push-ecr.yaml | 70 +++++++++++++-------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build-push-ecr.yaml b/.github/workflows/build-push-ecr.yaml index cf637f29..58d9d374 100644 --- a/.github/workflows/build-push-ecr.yaml +++ b/.github/workflows/build-push-ecr.yaml @@ -5,9 +5,9 @@ on: pull_request: branches: [ "main" ] -env: - Dockerfile_Backend: Dockerfile - Dockerfile_Web: web/Dockerfile +# env: +# Dockerfile_Backend: Dockerfile +# Dockerfile_Web: web/Dockerfile jobs: build: runs-on: ubuntu-latest @@ -30,38 +30,38 @@ jobs: id: ecr-login uses: aws-actions/amazon-ecr-login@v1 - - name: Build Backend and and push - if: github.event_name != 'pull_request' - env: - ECR_REGISTRY: ${{ steps.ecr-login.outputs.registry }} - ECR_REPOSITORY: ${{ secrets.BACKEND_ECR_REPOSITORY }} - run: | - VERSION_TAG=$(echo "${{ github.ref }}" | cut -d'/' -f 3) - TAG=$ECR_REGISTRY/$ECR_REPOSITORY:${VERSION_TAG} - docker build --platform linux/amd64 --push -t ${TAG} -f ${{ env.Dockerfile_Backend }} . - - - name: Build Backend image - if: github.event_name == 'pull_request' - run: | - docker build --platform linux/amd64 -f ${{ env.Dockerfile_Backend }} . - - - - name: Build Web and and push - if: github.event_name != 'pull_request' - env: - ECR_REGISTRY: ${{ steps.ecr-login.outputs.registry }} - ECR_REPOSITORY: ${{ secrets.WEB_ECR_REPOSITORY }} - run: | - VERSION_TAG=$(echo "${{ github.ref }}" | cut -d'/' -f 3) - TAG=$ECR_REGISTRY/$ECR_REPOSITORY:${VERSION_TAG} - docker build --platform linux/amd64 --push -t ${TAG} -f ${{ env.Dockerfile_Web }} web/ - - - name: Build Web image - if: github.event_name == 'pull_request' - run: | - docker build --platform linux/amd64 -f ${{ env.Dockerfile_Web }} web/ - #docker - + # - name: Build Backend and and push + # if: github.event_name != 'pull_request' + # env: + # ECR_REGISTRY: ${{ steps.ecr-login.outputs.registry }} + # ECR_REPOSITORY: ${{ secrets.BACKEND_ECR_REPOSITORY }} + # run: | + # VERSION_TAG=$(echo "${{ github.ref }}" | cut -d'/' -f 3) + # TAG=$ECR_REGISTRY/$ECR_REPOSITORY:${VERSION_TAG} + # docker build --platform linux/amd64 --push -t ${TAG} -f ${{ env.Dockerfile_Backend }} . + # + # - name: Build Backend image + # if: github.event_name == 'pull_request' + # run: | + # docker build --platform linux/amd64 -f ${{ env.Dockerfile_Backend }} . + # + # + # - name: Build Web and and push + # if: github.event_name != 'pull_request' + # env: + # ECR_REGISTRY: ${{ steps.ecr-login.outputs.registry }} + # ECR_REPOSITORY: ${{ secrets.WEB_ECR_REPOSITORY }} + # run: | + # VERSION_TAG=$(echo "${{ github.ref }}" | cut -d'/' -f 3) + # TAG=$ECR_REGISTRY/$ECR_REPOSITORY:${VERSION_TAG} + # docker build --platform linux/amd64 --push -t ${TAG} -f ${{ env.Dockerfile_Web }} web/ + # + # - name: Build Web image + # if: github.event_name == 'pull_request' + # run: | + # docker build --platform linux/amd64 -f ${{ env.Dockerfile_Web }} web/ + # #docker + #