Skip to content

Commit b023c15

Browse files
KbayeroAlexSanchez-bit
authored andcommitted
feat: add manual workflow to build frontend federation image
1 parent 83a9726 commit b023c15

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Frontend - Build Federation Image"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version tag (e.g. v11.2.10). The image will be tagged as <version>-federation"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
build_frontend_federation:
13+
name: Build Frontend Federation Image
14+
runs-on: ubuntu-24.04
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: '14.16.1'
22+
23+
- uses: actions/cache@v4
24+
with:
25+
path: ~/.npm
26+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-node-
29+
30+
- name: Build Frontend
31+
working-directory: ./frontend
32+
run: |
33+
export NODE_OPTIONS=--max_old_space_size=8192
34+
npm install
35+
npm run-script build
36+
37+
- name: Setup BuildX
38+
uses: docker/setup-buildx-action@v3
39+
40+
- name: Login to GitHub Container Registry
41+
uses: docker/login-action@v3
42+
with:
43+
registry: ghcr.io
44+
username: utmstack
45+
password: ${{ secrets.GITHUB_TOKEN }}
46+
47+
- name: Build and Push the Federation Image
48+
uses: docker/build-push-action@v6
49+
with:
50+
context: /home/runner/work/UTMStack/UTMStack/frontend/
51+
push: true
52+
provenance: false
53+
tags: ghcr.io/utmstack/utmstack/frontend:${{ inputs.version }}-federation

0 commit comments

Comments
 (0)