Skip to content

Commit de6c5f2

Browse files
Copilotdarthkali
andauthored
Migrate build pipeline from GitLab to GitHub Actions with manual dispatch triggers (#18)
* Initial plan * Migrate build pipeline from GitLab to GitHub with dispatch triggers Co-authored-by: darthkali <46423967+darthkali@users.noreply.github.com> * Create new GitLab migration build workflow without modifying existing files Co-authored-by: darthkali <46423967+darthkali@users.noreply.github.com> * Remove test jobs from GitLab migration build workflow as requested Co-authored-by: darthkali <46423967+darthkali@users.noreply.github.com> * Add helm chart build job to GitLab migration workflow Co-authored-by: darthkali <46423967+darthkali@users.noreply.github.com> * Change default helm chart path to deploy/chart Co-authored-by: darthkali <46423967+darthkali@users.noreply.github.com> * Remove helm chart build job and related input parameters as requested Co-authored-by: darthkali <46423967+darthkali@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: darthkali <46423967+darthkali@users.noreply.github.com>
1 parent cc65e2d commit de6c5f2

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: GitLab Migration Build Pipeline
2+
3+
# Migrated from GitLab CI - using dispatch trigger only as requested
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: 'Version to use for build (defaults to commit SHA)'
9+
required: false
10+
type: string
11+
default: ''
12+
13+
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
jobs:
19+
# Build frontend container - migrated from build-container-ui
20+
build-container-ui:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Set version
26+
id: version
27+
run: |
28+
if [ -n "${{ inputs.version }}" ]; then
29+
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
30+
elif [ "${{ github.ref_type }}" == "tag" ]; then
31+
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
32+
else
33+
echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV
34+
fi
35+
echo "SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
36+
37+
- uses: docker/setup-buildx-action@v3
38+
39+
- name: Build frontend container
40+
uses: docker/build-push-action@v6
41+
with:
42+
context: frontend/
43+
file: frontend/Dockerfile
44+
build-args: |
45+
VERSION=${{ env.VERSION }}
46+
CI=true
47+
tags: rag-eval-ui:${{ env.SHORT_SHA }}
48+
outputs: type=docker,dest=/tmp/frontend.tar
49+
cache-from: type=gha
50+
cache-to: type=gha,mode=max
51+
52+
- name: Upload frontend artifact
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: frontend.tar
56+
path: /tmp/frontend.tar
57+
retention-days: 2
58+
59+
# Build backend container - migrated from build-container-backend
60+
build-container-backend:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v4
64+
65+
- name: Set version
66+
id: version
67+
run: |
68+
if [ -n "${{ inputs.version }}" ]; then
69+
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
70+
elif [ "${{ github.ref_type }}" == "tag" ]; then
71+
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
72+
else
73+
echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV
74+
fi
75+
echo "SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
76+
77+
- uses: docker/setup-buildx-action@v3
78+
79+
- name: Build backend container
80+
uses: docker/build-push-action@v6
81+
with:
82+
context: backend/
83+
file: backend/Dockerfile
84+
build-args: |
85+
VERSION=${{ env.VERSION }}
86+
CI=true
87+
tags: llm-eval-backend:${{ env.SHORT_SHA }}
88+
outputs: type=docker,dest=/tmp/backend.tar
89+
cache-from: type=gha
90+
cache-to: type=gha,mode=max
91+
92+
- name: Upload backend artifact
93+
uses: actions/upload-artifact@v4
94+
with:
95+
name: backend.tar
96+
path: /tmp/backend.tar
97+
retention-days: 2
98+

0 commit comments

Comments
 (0)