forked from loftyoutcome/k8s-rag-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (67 loc) · 2.26 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build and Release Images
on:
push:
tags:
- v*
workflow_dispatch:
inputs:
tags:
description: 'Tags'
# if: >
# github.actor_permission == 'admin' ||
# github.actor_permission == 'maintain' ||
# github.repository_owner == github.actor
env:
AWS_REGION: "us-east-1"
jobs:
release-images:
runs-on: ubuntu-latest
# if: >
# github.actor_permission == 'admin' ||
# github.actor_permission == 'maintain' ||
# github.repository_owner == github.actor
steps:
- name: Remove software and language runtimes we're not using
run: |
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/share/powershell
sudo rm -rf /usr/local/share/chromium
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /usr/local/julia*
sudo rm -rf /opt/google/chrome
df . -h
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Fetch all tags
run: git fetch origin +refs/tags/*:refs/tags/*
- name: Set up Docker
uses: ./.github/actions/setup-docker
with:
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log actor and permissions
run: |
echo "Actor: ${{ github.actor }}"
echo "Actor Permission: ${{ github.actor_permission }}"
echo "Repository Owner: ${{ github.repository_owner }}"
- name: Set tag
id: set-tag
run: |
TAG=$(git describe --tags --match "v*" --abbrev=0)
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Log tag
run: |
echo "Tag: ${{ env.TAG }}"
- name: Build and push image - createvectordb
run: |
./dockers/llm.vdb.service/makeDocker.sh elotl/createvectordb ${{ env.TAG }}
- name: Build and push image - llm-chat
run: |
./dockers/llm.chatui.service/makeDocker.sh elotl/llm-chat ${{ env.TAG }}
- name: Build and push image - serveragllm
run: |
./dockers/llm.rag.service/makeDocker.sh elotl/serveragllm ${{ env.TAG }}