Skip to content

Commit

Permalink
New updated arm workflow - github action
Browse files Browse the repository at this point in the history
  • Loading branch information
nagstler committed Apr 28, 2024
1 parent 9264df0 commit 9ab24d5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ui-docker-build-amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: frontend-docker-build (amd64)

on:
workflow_run:
workflows: ["frontend-ci-amd"]
workflows: ["frontend-ci"]
branches: [main]
types:
- completed
Expand Down Expand Up @@ -38,6 +38,6 @@ jobs:
file: ./ui/Dockerfile
push: true
tags: |
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}-amd
${{ env.IMAGE_NAME }}:${{ github.sha }}-amd
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
${{ env.IMAGE_NAME }}:${{ github.sha }}
platforms: linux/amd64
43 changes: 43 additions & 0 deletions .github/workflows/ui-docker-build-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: frontend-docker-build (arm)

on:
workflow_run:
workflows: ["frontend-ci"]
branches: [main]
types:
- completed

env:
IMAGE_NAME: multiwoven/multiwoven-ui
IMAGE_TAG: edge

jobs:
build_and_push:
runs-on: macos-latest-large

steps:
- 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 }}

- 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/arm64

0 comments on commit 9ab24d5

Please sign in to comment.