forked from rh-ai-quickstart/RAG
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.37 KB
/
Copy pathbuild-dev.yml
File metadata and controls
50 lines (44 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build dev image
on:
push:
branches:
- dev
jobs:
build-dev:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
packages: write
strategy:
matrix:
include:
- name: llamastack-dist-ui
context: frontend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Generate dev tag
id: tag
run: |
short_sha=$(git rev-parse --short HEAD)
echo "value=dev-${short_sha}" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
file: ${{ matrix.context }}/Containerfile
push: true
tags: |
quay.io/rh-ai-quickstart/${{ matrix.name }}:${{ steps.tag.outputs.value }}
quay.io/rh-ai-quickstart/${{ matrix.name }}:latest-dev
cache-from: type=registry,ref=quay.io/rh-ai-quickstart/${{ matrix.name }}:buildcache
cache-to: type=registry,ref=quay.io/rh-ai-quickstart/${{ matrix.name }}:buildcache,mode=max