Skip to content

v0.1.2-alpha.5

v0.1.2-alpha.5 #33

Workflow file for this run

name: Build & publish lmnr images
on:
release:
types:
- published
env:
REGISTRY_GH: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./app-server/Dockerfile
context: ./app-server
image: ghcr.io/lmnr-ai/app-server
- dockerfile: ./frontend/Dockerfile
context: ./frontend
image: ghcr.io/lmnr-ai/frontend
- dockerfile: ./semantic-search-service/Dockerfile
context: ./semantic-search-service
image: ghcr.io/lmnr-ai/semantic-search-service
- dockerfile: ./python-executor/Dockerfile
context: ./python-executor
image: ghcr.io/lmnr-ai/python-executor
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_GH }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
- name: Build and push Docker images
id: push
uses: docker/build-push-action@v6
with:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ matrix.image }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true