forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.75 KB
/
pr_image_build_from_source.yaml
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
name: pr-image-build-from-source
on:
push:
branches:
- main
#pull_request:
# types:
# - opened
# - synchronize
# - labeled
# paths-ignore:
# - 'community/**'
# - 'docs/**'
# - 'examples/**'
jobs:
image-build-from-source:
if:
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
github.event.pull_request.base.repo.full_name == 'feast-dev/feast'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Build grpc builder image from source
uses: docker/build-push-action@v6
with:
context: sdk/python/feast/infra/feature_servers/multicloud
file: sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.builder.grpc
load: true
tags: grpc-builder:latest
- name: Build arrow builder image from source
uses: docker/build-push-action@v6
with:
context: sdk/python/feast/infra/feature_servers/multicloud
file: sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.builder.arrow
load: true
tags: feast-sdist-builder:latest
- name: Run cachi2-based feast release image build from source
run: source ./infra/scripts/cachi2.sh