-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/mistral-tokenizer
- Loading branch information
Showing
5 changed files
with
128 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Adapted from https://github.com/stackhpc/azimuth/blob/master/.github/workflows/build-push-artifacts.yaml | ||
name: Publish Helm charts | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
type: string | ||
description: The ref to build. | ||
required: true | ||
outputs: | ||
chart-version: | ||
description: The chart version that was published | ||
value: ${{ jobs.build_push_chart.outputs.chart-version }} | ||
|
||
jobs: | ||
build_push_charts: | ||
name: Build and push Helm charts | ||
runs-on: ubuntu-latest | ||
# Only build and push the chart if the images built successfully | ||
outputs: | ||
chart-version: ${{ steps.semver.outputs.version }} | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
# This is important for the semver action to work correctly | ||
# when determining the number of commits since the last tag | ||
fetch-depth: 0 | ||
|
||
- name: Get SemVer version for current commit | ||
id: semver | ||
uses: azimuth-cloud/github-actions/semver@master | ||
|
||
- name: Publish Helm charts | ||
uses: azimuth-cloud/github-actions/helm-publish@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: ${{ steps.semver.outputs.version }} | ||
app-version: ${{ steps.semver.outputs.short-sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Adapted from https://github.com/stackhpc/azimuth/blob/master/.github/workflows/build-push-artifacts.yaml | ||
name: Publish container images | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
type: string | ||
description: The ref to build. | ||
required: true | ||
|
||
jobs: | ||
build_push_images: | ||
name: Build and push images | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- component: chat | ||
- component: image-analysis | ||
permissions: | ||
contents: read | ||
id-token: write # needed for signing the images with GitHub OIDC Token | ||
packages: write # required for pushing container images | ||
security-events: write # required for pushing SARIF files | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get SemVer version for current commit | ||
id: semver | ||
uses: azimuth-cloud/github-actions/semver@master | ||
|
||
- name: Calculate metadata for image | ||
id: image-meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/stackhpc/azimuth-llm-${{ matrix.component }}-ui | ||
# Produce the branch name or tag and the SHA as tags | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
type=raw,value=${{ steps.semver.outputs.short-sha }} | ||
- name: Build and push image | ||
uses: azimuth-cloud/github-actions/docker-multiarch-build-push@master | ||
with: | ||
cache-key: ${{ matrix.component }} | ||
context: ./web-apps/ | ||
file: ./web-apps/${{ matrix.component }}/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.image-meta.outputs.tags }} | ||
labels: ${{ steps.image-meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters