1
1
# Adapted from https://github.com/stackhpc/azimuth/blob/master/.github/workflows/build-push-artifacts.yaml
2
2
name : Publish artifacts
3
3
# Run the tasks on every push
4
- # TODO: Add path filtering to only run on relevant changes
5
4
on : push
6
5
jobs :
7
6
# Job to run change detection
24
23
id : filter
25
24
with :
26
25
base : ${{ github.ref_name }}
26
+ # TODO: Make image filters more granular
27
27
filters : |
28
28
images:
29
- - 'images /**'
29
+ - 'web-apps /**'
30
30
chart:
31
31
- 'chart/**'
32
32
39
39
strategy :
40
40
matrix :
41
41
include :
42
- # - component: api
43
- - component : ui
42
+ - component : chat-interface
44
43
steps :
45
44
- name : Check out the repository
46
45
uses : actions/checkout@v4
@@ -56,23 +55,22 @@ jobs:
56
55
id : image-meta
57
56
uses : docker/metadata-action@v5
58
57
with :
59
- images : ghcr.io/stackhpc/azimuth-llm-${{ matrix.component }}-base
58
+ images : ghcr.io/stackhpc/azimuth-llm-${{ matrix.component }}
60
59
# Produce the branch name or tag and the SHA as tags
61
60
tags : |
62
61
type=ref,event=branch
63
62
type=ref,event=tag
64
63
type=sha,prefix=
65
64
66
65
- name : Build and push image
67
- uses : stackhpc /github-actions/docker-multiarch-build-push@allow-continue-after-scan
66
+ uses : azimuth-cloud /github-actions/docker-multiarch-build-push@update-trivy-action
68
67
with :
69
- cache-key : ${{ matrix.component }}-base
70
- context : ./images /${{ matrix.component }}-base
68
+ cache-key : ${{ matrix.component }}
69
+ context : ./web-apps /${{ matrix.component }}
71
70
platforms : linux/amd64,linux/arm64
72
71
push : true
73
72
tags : ${{ steps.image-meta.outputs.tags }}
74
73
labels : ${{ steps.image-meta.outputs.labels }}
75
- fail_on_high_severity_cve : false
76
74
77
75
# Job to build and publish Helm chart
78
76
build_push_chart :
@@ -91,10 +89,10 @@ jobs:
91
89
92
90
- name : Get SemVer version for current commit
93
91
id : semver
94
- uses : stackhpc /github-actions/semver@master
92
+ uses : azimuth-cloud /github-actions/semver@master
95
93
96
94
- name : Publish Helm charts
97
- uses : stackhpc /github-actions/helm-publish@master
95
+ uses : azimuth-cloud /github-actions/helm-publish@master
98
96
with :
99
97
token : ${{ secrets.GITHUB_TOKEN }}
100
98
version : ${{ steps.semver.outputs.version }}
0 commit comments