11# Adapted from https://github.com/stackhpc/azimuth/blob/master/.github/workflows/build-push-artifacts.yaml
22name : Publish artifacts
33# Run the tasks on every push
4- # TODO: Add path filtering to only run on relevant changes
54on : push
65jobs :
76 # Job to run change detection
2423 id : filter
2524 with :
2625 base : ${{ github.ref_name }}
26+ # TODO: Make image filters more granular
2727 filters : |
2828 images:
29- - 'images /**'
29+ - 'web-apps /**'
3030 chart:
3131 - 'chart/**'
3232
3939 strategy :
4040 matrix :
4141 include :
42- # - component: api
43- - component : ui
42+ - component : chat-interface
4443 steps :
4544 - name : Check out the repository
4645 uses : actions/checkout@v4
@@ -56,23 +55,22 @@ jobs:
5655 id : image-meta
5756 uses : docker/metadata-action@v5
5857 with :
59- images : ghcr.io/stackhpc/azimuth-llm-${{ matrix.component }}-base
58+ images : ghcr.io/stackhpc/azimuth-llm-${{ matrix.component }}
6059 # Produce the branch name or tag and the SHA as tags
6160 tags : |
6261 type=ref,event=branch
6362 type=ref,event=tag
6463 type=sha,prefix=
6564
6665 - 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
6867 with :
69- cache-key : ${{ matrix.component }}-base
70- context : ./images /${{ matrix.component }}-base
68+ cache-key : ${{ matrix.component }}
69+ context : ./web-apps /${{ matrix.component }}
7170 platforms : linux/amd64,linux/arm64
7271 push : true
7372 tags : ${{ steps.image-meta.outputs.tags }}
7473 labels : ${{ steps.image-meta.outputs.labels }}
75- fail_on_high_severity_cve : false
7674
7775 # Job to build and publish Helm chart
7876 build_push_chart :
@@ -91,10 +89,10 @@ jobs:
9189
9290 - name : Get SemVer version for current commit
9391 id : semver
94- uses : stackhpc /github-actions/semver@master
92+ uses : azimuth-cloud /github-actions/semver@master
9593
9694 - name : Publish Helm charts
97- uses : stackhpc /github-actions/helm-publish@master
95+ uses : azimuth-cloud /github-actions/helm-publish@master
9896 with :
9997 token : ${{ secrets.GITHUB_TOKEN }}
10098 version : ${{ steps.semver.outputs.version }}
0 commit comments