File tree Expand file tree Collapse file tree 8 files changed +55
-19
lines changed Expand file tree Collapse file tree 8 files changed +55
-19
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,5 @@ updates:
13
13
groups :
14
14
github-actions :
15
15
patterns : ["*"]
16
- labels :
17
- - automation
18
- - gha-update
19
16
20
17
# TODO: Add web app python dependencies
Original file line number Diff line number Diff line change 10
10
- ready_for_review
11
11
- reopened
12
12
branches :
13
- - master
13
+ - main
14
14
15
15
# Use the head ref for workflow concurrency, with cancellation
16
16
# This should mean that any previous workflows for a PR get cancelled when a new commit is pushed
57
57
with :
58
58
cluster_name : ${{ env.CLUSTER_NAME }}
59
59
60
+ # NOTE(scott): Since the local Chart.yaml uses "appVersion: latest" and this
61
+ # only gets overwritten to the correct commit SHA during Helm chart build,
62
+ # we need to pull these published images and load them into the kind cluster
63
+ # with the tag correct tag.
64
+ - name : Load tagged container images into kind cluster
65
+ run : ./kind-images.sh ${{ github.event.pull_request.head.sha }} ${{ env.CLUSTER_NAME }}
66
+ working-directory : web-apps
67
+
60
68
- name : Add Helm repos for dependencies
61
69
run : |
62
70
helm repo add stakater https://stakater.github.io/stakater-charts
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ type: application
9
9
10
10
# The version and appVersion are updated by the chart build script
11
11
version : 0.1.0
12
- appVersion : master
12
+ appVersion : local
13
13
14
14
icon : https://huggingface.co/datasets/huggingface/brand-assets/resolve/main/hf-logo.svg
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ type: application
9
9
10
10
# The version and appVersion are updated by the chart build script
11
11
version : 0.1.0
12
- appVersion : master
12
+ appVersion : local
13
13
14
14
icon : https://huggingface.co/datasets/huggingface/brand-assets/resolve/main/hf-logo.svg
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ type: application
9
9
10
10
# The version and appVersion are updated by the chart build script
11
11
version : 0.1.0
12
- appVersion : master
12
+ appVersion : local
13
13
14
14
icon : https://huggingface.co/datasets/huggingface/brand-assets/resolve/main/hf-logo.svg
15
15
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- build () {
5
- if [[ -f $1 /Dockerfile ]]; then
6
- echo Building $1 docker image
7
- docker build . -t ghcr.io/stackhpc/azimuth-llm-$1 -f $1 /Dockerfile
8
- else
9
- echo No Dockerfile found for $1
10
- fi
11
- }
4
+ source functions.sh
12
5
13
6
# If a single app is provided as a
14
7
# script arg then just build that image,
15
8
# otherwise try building all images.
16
9
if [[ ! -z $1 ]]; then
17
10
build $1
18
11
else
19
- for item in $( ls) ; do
20
- if [[ -d $item ]]; then
21
- build $item
22
- fi
12
+ for image in $( find_images .) ; do
13
+ build $image
23
14
done
24
15
fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ find_images () {
4
+ images=" "
5
+ for dir in $( ls $1 ) ; do
6
+ if [[ -f $1 /$dir /Dockerfile ]]; then
7
+ images+=" $dir "
8
+ fi
9
+ done
10
+ echo $images
11
+ }
12
+
13
+ build () {
14
+ if [[ -f $1 /Dockerfile ]]; then
15
+ echo Building $1 docker image
16
+ docker build . -t ghcr.io/stackhpc/azimuth-llm-$1 -ui -f $1 /Dockerfile
17
+ else
18
+ echo No Dockerfile found for $1
19
+ fi
20
+ }
Original file line number Diff line number Diff line change
1
+ set -e
2
+
3
+ source functions.sh
4
+
5
+ if [[ -z $1 ]]; then
6
+ echo " Published image tag must be provided as sole command line arg"
7
+ exit 1
8
+ fi
9
+
10
+ REMOTE_TAG=$1
11
+ CLUSTER_NAME=${2:- kind}
12
+ echo Kind cluster name: $CLUSTER_NAME
13
+ KIND_TAG=local
14
+ for image in $( find_images .) ; do
15
+ full_name=ghcr.io/stackhpc/azimuth-llm-$image -ui
16
+ echo $full_name
17
+ docker pull $full_name :$REMOTE_TAG
18
+ docker image tag $full_name :$REMOTE_TAG $full_name :$KIND_TAG
19
+ kind load docker-image -n $CLUSTER_NAME $full_name :$KIND_TAG
20
+ done
You can’t perform that action at this time.
0 commit comments