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
@@ -35,12 +35,11 @@ jobs:
35
35
name : Build and push images
36
36
runs-on : ubuntu-latest
37
37
needs : changes
38
- if : ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
38
+ # if: ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
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,46 +55,45 @@ 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
- # Job to build and publish Helm chart
78
- build_push_chart :
79
- name : Build and push Helm chart
80
- runs-on : ubuntu-latest
81
- # Only build and push the chart if chart files have changed
82
- needs : [changes]
83
- if : ${{ needs.changes.outputs.chart == 'true' || github.ref_type == 'tag' }}
84
- steps :
85
- - name : Check out the repository
86
- uses : actions/checkout@v4
87
- with :
88
- # This is important for the semver action to work correctly
89
- # when determining the number of commits since the last tag
90
- fetch-depth : 0
75
+ # # Job to build and publish Helm chart
76
+ # build_push_chart:
77
+ # name: Build and push Helm chart
78
+ # runs-on: ubuntu-latest
79
+ # # Only build and push the chart if chart files have changed
80
+ # needs: [changes]
81
+ # if: ${{ needs.changes.outputs.chart == 'true' || github.ref_type == 'tag' }}
82
+ # steps:
83
+ # - name: Check out the repository
84
+ # uses: actions/checkout@v4
85
+ # with:
86
+ # # This is important for the semver action to work correctly
87
+ # # when determining the number of commits since the last tag
88
+ # fetch-depth: 0
91
89
92
- - name : Get SemVer version for current commit
93
- id : semver
94
- uses : stackhpc /github-actions/semver@master
90
+ # - name: Get SemVer version for current commit
91
+ # id: semver
92
+ # uses: azimuth-cloud /github-actions/semver@master
95
93
96
- - name : Publish Helm charts
97
- uses : stackhpc /github-actions/helm-publish@master
98
- with :
99
- token : ${{ secrets.GITHUB_TOKEN }}
100
- version : ${{ steps.semver.outputs.version }}
101
- app-version : ${{ steps.semver.outputs.short-sha }}
94
+ # - name: Publish Helm charts
95
+ # uses: azimuth-cloud /github-actions/helm-publish@master
96
+ # with:
97
+ # token: ${{ secrets.GITHUB_TOKEN }}
98
+ # version: ${{ steps.semver.outputs.version }}
99
+ # app-version: ${{ steps.semver.outputs.short-sha }}
0 commit comments