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