Skip to content

Commit e8ec233

Browse files
devin-ai-integration[bot]natikgadzhiaaronsteers
authored
ci: add Docker build workflow for PR checks (#385)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Aaron ("AJ") Steers <[email protected]>
1 parent ab4a8ee commit e8ec233

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Docker Build Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
docker-build-check:
10+
name: SDM Docker Image Build # Renamed job to be more descriptive
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
# Build the Python package to create the wheel files needed for the Docker build
19+
- name: Build Python Package
20+
uses: hynek/build-and-inspect-python-package@v2
21+
env:
22+
POETRY_DYNAMIC_VERSIONING_BYPASS: "0.0.0dev0"
23+
24+
# Copy the wheel files to the dist directory
25+
- name: Copy wheel files to dist directory
26+
run: |
27+
mkdir -p dist
28+
cp /tmp/baipp/dist/*.whl dist/
29+
30+
- name: Set up QEMU for multi-platform builds
31+
uses: docker/setup-qemu-action@v3
32+
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v3
35+
36+
- name: Build Docker image for multiple platforms
37+
id: docker-build
38+
uses: docker/build-push-action@v5
39+
with:
40+
context: .
41+
platforms: linux/amd64,linux/arm64
42+
push: false
43+
tags: airbyte/source-declarative-manifest:pr-${{ github.event.pull_request.number }}
44+
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=SDM Docker image for PR ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)