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
@@ -35,12 +35,11 @@ jobs:
3535 name : Build and push images
3636 runs-on : ubuntu-latest
3737 needs : changes
38- if : ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
38+ # if: ${{ needs.changes.outputs.images == 'true' || github.ref_type == 'tag' }}
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,46 +55,45 @@ 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
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
9189
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
9593
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