From a959b29ee9e1e013087b3fbd9cc3a518378b8145 Mon Sep 17 00:00:00 2001 From: priyaranjanpatil Date: Thu, 14 Dec 2023 16:35:36 +1100 Subject: [PATCH] pipeline testing --- .github/workflows/github-actions.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index e8a787f1..6e5e93f1 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -366,8 +366,11 @@ jobs: IMAGE_ID=${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }} echo "image=$IMAGE_ID" >> $GITHUB_OUTPUT - - name: Build Docker images + run: | + docker-compose -f docker-compose.yml build + + - name: Push Docker images to ECR env: IMAGE_TAG: ${{ steps.create-image-id.outputs.image }} CONTAINER_NAME: ${{ env.CONTAINER_NAME }} @@ -375,15 +378,8 @@ jobs: HOST: ${{ vars.HOST }} PORT: ${{ vars.PORT }} ELASTIC_URL: ${{ vars.ELASTIC_URL }} - ELASTIC_KEY: ${{ vars.ELASTIC_KEY }} - run: | - docker-compose -f docker-compose.yml build - - - name: Push Docker images to ECR - env: - ACCOUNT_ID: "704910415367.dkr.ecr.ap-southeast-2.amazonaws.com" + ELASTIC_KEY: ${{ vars.ELASTIC_KEY }} run: | - #aws ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin ${{ env.ACCOUNT_ID }} docker-compose -f docker-compose.yml push - name: Deploy to ECS Fargate