From 681135bcfd23aa59412f069122852138e2ce4bb4 Mon Sep 17 00:00:00 2001 From: Mattia Bradascio <28816406+bredamatt@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:15:21 +0100 Subject: [PATCH] fix: remove redundant workflow --- .github/workflows/devnet-ecr.yml | 38 -------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/devnet-ecr.yml diff --git a/.github/workflows/devnet-ecr.yml b/.github/workflows/devnet-ecr.yml deleted file mode 100644 index c297e131b..000000000 --- a/.github/workflows/devnet-ecr.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Build and Push to ECR - -on: - push: - branches: - - main - -jobs: - build-and-push: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Log in to Amazon ECR - id: ecr-login - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: ${{ secrets.AWS_REGION }} - run: | - aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID - aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY - aws configure set region $AWS_REGION - aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin ${{ secrets.ECR_REPOSITORY_URI }} - - - name: Build Docker image - run: | - docker build -t ${{ secrets.ECR_REPOSITORY_URI }}:latest . - - - name: Push Docker image to ECR - run: | - docker push ${{ secrets.ECR_REPOSITORY_URI }}:latest - - - name: Log out of Docker - run: docker logout - - \ No newline at end of file