Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: CI

on:
push:
branches:
- '**'
tags-ignore:
- '**'

jobs:
backend-format:
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Backend Image
name: Build and Push Images

on:
push:
Expand All @@ -8,6 +8,15 @@ on:
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: backend
context: backend
package: modai-chat-backend
- name: frontend
context: frontend_omni
package: modai-chat-frontend
permissions:
contents: read
packages: write
Expand All @@ -28,14 +37,14 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/modai-chat-backend
images: ghcr.io/${{ github.repository_owner }}/${{ matrix.package }}
tags: |
type=raw,value=latest

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: backend
context: ${{ matrix.context }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand All @@ -46,10 +55,18 @@ jobs:
name: Cleanup Untagged Images
runs-on: ubuntu-latest
needs: build-and-push
strategy:
matrix:
include:
- name: backend
package: modai-chat-backend
- name: frontend
package: modai-chat-frontend
permissions:
packages: write
steps:
- name: Delete untagged images
uses: dataaxiom/ghcr-cleanup-action@v1
with:
delete-untagged: true
package: ${{ matrix.package }}