Skip to content

v0.1.1-alpha.3

v0.1.1-alpha.3 #8

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
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@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
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@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ matrix.image }}
- name: Build and push Docker images
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
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