Skip to content

Commit

Permalink
Disabled BuildX to run on separate physical platform due to runtime e…
Browse files Browse the repository at this point in the history
…rrors.
  • Loading branch information
nagstler committed Apr 28, 2024
1 parent 2b29d48 commit 40b170b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 30 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/ui-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
9 changes: 1 addition & 8 deletions .github/workflows/ui-docker-hub-push-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -32,12 +26,11 @@ 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
file: ./ui/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
3 changes: 1 addition & 2 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down

0 comments on commit 40b170b

Please sign in to comment.