From 357194d8d3f537bb5889c586aae850ff0c1f63ec Mon Sep 17 00:00:00 2001 From: Sheetal-ayanworks <125483294+Sheetal-ayanworks@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:49:27 +0530 Subject: [PATCH] Update dev-afj.yml Signed-off-by: Sheetal-ayanworks <125483294+Sheetal-ayanworks@users.noreply.github.com> --- .github/workflows/dev-afj.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev-afj.yml b/.github/workflows/dev-afj.yml index 6c776aae..7b79d1b0 100644 --- a/.github/workflows/dev-afj.yml +++ b/.github/workflows/dev-afj.yml @@ -4,9 +4,7 @@ on: push: branches: - pipeline-implementation - paths: - - 'apps/agent-service/**' - workflow_dispatch: + env: @@ -41,13 +39,15 @@ jobs: uses: aws-actions/amazon-ecr-login@v1 - name: update modules - run: yarn + run: | + rm -rf node_modules + yarn - name: Build, tag, and push image to Amazon ECR env: ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: dev-services - IMAGE_TAG: "AGENT_V_${{ github.run_number }}" + IMAGE_TAG: "AFJ_V_${{ github.run_number }}" run: | docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG @@ -57,7 +57,7 @@ jobs: run: | echo "ECR_REGISTRY=${{ steps.login-ecr.outputs.registry }}" >> $GITHUB_ENV echo "ECR_REPOSITORY=dev-services" >> $GITHUB_ENV - echo "IMAGE_TAG=AGENT_V_${{ github.run_number }}" >> $GITHUB_ENV + echo "IMAGE_TAG=AFJ_V_${{ github.run_number }}" >> $GITHUB_ENV - name: Print environment variables run: |