From 40b170b0a9a69e2cea9f922bb1c38c1777d03adc Mon Sep 17 00:00:00 2001 From: Nagendra Dhanakeerthi Date: Sun, 28 Apr 2024 11:36:52 +0400 Subject: [PATCH] Disabled BuildX to run on separate physical platform due to runtime errors. --- .github/workflows/ui-docker-build.yml | 26 +++++-------------- .../workflows/ui-docker-hub-push-tags.yaml | 9 +------ ui/Dockerfile | 3 +-- 3 files changed, 8 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ui-docker-build.yml b/.github/workflows/ui-docker-build.yml index ba96ab2c..46424098 100644 --- a/.github/workflows/ui-docker-build.yml +++ b/.github/workflows/ui-docker-build.yml @@ -19,25 +19,11 @@ jobs: - name: Checkout Code uses: actions/checkout@v2 - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - + run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username ${{ secrets.DOCKER_USERNAME }} --password-stdin + - name: Build and Push Docker image - uses: docker/build-push-action@v2 - with: - context: ./ui - file: ./ui/Dockerfile - push: true - tags: | - ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} - ${{ env.IMAGE_NAME }}:${{ github.sha }} - platforms: linux/amd64,linux/arm64 + run: | + docker build -t ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} -t ${{ env.IMAGE_NAME }}:${{ github.sha }} -f ui/Dockerfile ./ui + docker push ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} + docker push ${{ env.IMAGE_NAME }}:${{ github.sha }} diff --git a/.github/workflows/ui-docker-hub-push-tags.yaml b/.github/workflows/ui-docker-hub-push-tags.yaml index adb02b1c..234067c3 100644 --- a/.github/workflows/ui-docker-hub-push-tags.yaml +++ b/.github/workflows/ui-docker-hub-push-tags.yaml @@ -13,12 +13,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub uses: docker/login-action@v3 with: @@ -32,7 +26,7 @@ jobs: images: | multiwoven/multiwoven-ui - - name: Build and push UI Docker image + - name: Build and push server Docker image uses: docker/build-push-action@v5 with: context: ./ui @@ -40,4 +34,3 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 diff --git a/ui/Dockerfile b/ui/Dockerfile index 7e2b54d4..cdecc642 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -9,8 +9,7 @@ WORKDIR /app COPY package*.json ./ # Install dependencies -# Timeout in milliseconds (10 minutes) -RUN npm install --timeout=600000 +RUN npm install # Copy the rest of your application code COPY . .