Skip to content

🚀 Version 0.5.0-rc.7 #28

🚀 Version 0.5.0-rc.7

🚀 Version 0.5.0-rc.7 #28

Workflow file for this run

name: Artifacts
on:
release:
types:
- published
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write
jobs:
containers:
name: Build and Push Container Images
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-24.04
platform: linux/amd64
- os: ubuntu-24.04-arm
platform: linux/arm64
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Log in to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,format=long
type=raw,value=latest,enable=${{ !contains(github.ref, '-rc') }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
target: prod
push: true
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
sign_containers:
name: Sign Container Images
runs-on: ubuntu-24.04
needs: containers
steps:
- name: Install cosign
uses: sigstore/[email protected]
with:
cosign-release: "v2.4.3"
- name: Log in to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata from previous job
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,format=long
type=raw,value=latest,enable=${{ !contains(github.ref, '-rc') }}
- name: Sign container image
run: |
for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr '\n' ' '); do
cosign sign --yes $tag
done
charts:
name: Publish Helm Chart
runs-on: ubuntu-24.04
env:
TAG: ${{ github.event.release.tag_name }}
steps:
- name: Checkout code
uses: actions/[email protected]
with:
ref: ${{ github.ref }}
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.17.0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Package and Push Helm chart
run: |
VERSION=${TAG#v}
cd charts/inference-gateway-ui
helm dependency update
helm package . --version ${VERSION} --app-version ${VERSION}
helm push inference-gateway-ui-${VERSION}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts