forked from lakekeeper/lakekeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.23 KB
/
docker_build.yml
File metadata and controls
47 lines (40 loc) · 1.23 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
name: Docker Build
permissions:
contents: read
on:
workflow_call:
inputs:
platform:
description: 'Platform to build for (e.g., amd64)'
required: false
type: string
default: 'amd64'
dockerfile:
description: 'Path to the Dockerfile'
required: false
type: string
default: 'docker/full.Dockerfile'
image_name:
description: 'Name of the image to build'
required: false
type: string
default: 'lakekeeper-local'
jobs:
docker:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker info
run: docker info
- name: Build Docker image (${{ inputs.platform }})
run: |
DOCKER_BUILDKIT=1 docker build --build-arg NO_CHEF=true -t localhost/${{ inputs.image_name }}:${{ inputs.platform }} \
-f ${{ inputs.dockerfile }} .
docker save -o /tmp/${{ inputs.image_name }}-${{ inputs.platform }}.tar localhost/${{ inputs.image_name }}:${{ inputs.platform }}
- name: Save Docker
uses: actions/upload-artifact@v5
with:
name: lakekeeper-image
path: /tmp/*.tar