From 5109a0ecf7a6773a5c00f583b0b1275f86178211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 31 Oct 2025 16:26:22 +0100 Subject: [PATCH] Stop pushing images to AWS ECR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- .github/workflows/build-images.yml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 11a14d2..e1458e1 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -19,15 +19,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v5 - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v5 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-2 - - name: Login to AWS ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v2 - name: Login to OCI Registry id: login-ocir uses: oracle-actions/login-ocir@v1.3.0 @@ -41,16 +32,12 @@ jobs: compartment: ${{ secrets.OCI_COMPARTMENT_OCID }} - name: Build and push gitvote-dbmigrator image env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }} OCIR_REPOSITORY: ${{ steps.get-ocir-repository-dbmigrator.outputs.repo_path }} run: | docker build \ -f database/migrations/Dockerfile \ - -t $ECR_REGISTRY/gitvote-dbmigrator:$GITHUB_SHA \ -t $OCIR_REPOSITORY:$GITHUB_SHA \ . - docker push $ECR_REGISTRY/gitvote-dbmigrator:$GITHUB_SHA docker push $OCIR_REPOSITORY:$GITHUB_SHA build-gitvote-image: @@ -59,15 +46,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v5 - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v5 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-2 - - name: Login to AWS ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v2 - name: Login to OCI Registry id: login-ocir uses: oracle-actions/login-ocir@v1.3.0 @@ -81,13 +59,9 @@ jobs: compartment: ${{ secrets.OCI_COMPARTMENT_OCID }} - name: Build and push gitvote image env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }} OCIR_REPOSITORY: ${{ steps.get-ocir-repository-server.outputs.repo_path }} run: | docker build \ - -t $ECR_REGISTRY/gitvote:$GITHUB_SHA \ -t $OCIR_REPOSITORY:$GITHUB_SHA \ . - docker push $ECR_REGISTRY/gitvote:$GITHUB_SHA docker push $OCIR_REPOSITORY:$GITHUB_SHA