From 78cca7014c63ec88e1f14473be84b014f6d920ad Mon Sep 17 00:00:00 2001 From: blazeAssault26 Date: Fri, 22 Nov 2024 05:43:59 +0530 Subject: [PATCH] new --- .github/workflows/main.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e771b05..0f1cafd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ on: branches: - main paths-ignore: - - 'README.md' + - 'README.md' jobs: integration: @@ -14,10 +14,10 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v3 - + - name: Lint code run: echo "Linting repository" - + - name: Run unit tests run: echo "Running unit tests" @@ -28,23 +28,23 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v3 - + - name: Install Utilities run: | sudo apt-get update sudo apt-get install -y jq unzip - + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - + - name: Login to Amazon ECR id: login-ecr uses: aws-actions/amazon-ecr-login@v1 - + - name: Build, tag, and push image to Amazon ECR id: build-image env: @@ -52,11 +52,10 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY_NAME }} IMAGE_TAG: latest run: | - # Use buildx for Docker build docker buildx create --use docker buildx build \ --platform linux/amd64 \ -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \ - . \ - --push - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" + --push \ + . + echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT \ No newline at end of file