Skip to content

Commit

Permalink
Consolidating the workflows & using buildX on arm platform
Browse files Browse the repository at this point in the history
  • Loading branch information
nagstler committed Apr 28, 2024
1 parent a8c002b commit 0b6c20d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 79 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/ui-docker-build-arm.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: frontend-docker-build-AMD
name: frontend-docker-build

on:
workflow_run:
workflows: ["frontend-ci-amd"]
workflows: ["frontend-ci"]
branches: [main]
types:
- completed
Expand All @@ -13,7 +13,7 @@ env:

jobs:
build_and_push:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, ARM64] # Targeting the self-hosted ARM runner

steps:
- name: Checkout Code
Expand All @@ -26,4 +26,4 @@ jobs:
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 }}
docker push ${{ env.IMAGE_NAME }}:${{ github.sha }}
33 changes: 0 additions & 33 deletions .github/workflows/ui-docker-hub-push-tags-arm.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and push Multiwoven UI docker image to Docker Hub
name: Build and push Multiwoven server docker image to Docker Hub

on:
workflow_dispatch:
Expand All @@ -8,11 +8,17 @@ on:

jobs:
docker-hub-push-on-merge:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, ARM64] # Targeting the self-hosted ARM runner
steps:
- 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 @@ -24,13 +30,14 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
multiwoven/multiwoven-ui
multiwoven/multiwoven-server
- name: Build and push server Docker image
uses: docker/build-push-action@v5
with:
context: ./ui
file: ./ui/Dockerfile
context: ./server
file: ./server/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

0 comments on commit 0b6c20d

Please sign in to comment.