Skip to content
Merged
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
44 changes: 44 additions & 0 deletions .github/workflows/docker-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Docker Build Check

on:
pull_request:
branches:
- main

jobs:
docker-build-check:
name: SDM Docker Image Build # Renamed job to be more descriptive
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

# Build the Python package to create the wheel files needed for the Docker build
- name: Build Python Package
uses: hynek/build-and-inspect-python-package@v2
env:
POETRY_DYNAMIC_VERSIONING_BYPASS: "0.0.0dev0"

# Copy the wheel files to the dist directory
- name: Copy wheel files to dist directory
run: |
mkdir -p dist
cp /tmp/baipp/dist/*.whl dist/

- name: Set up QEMU for multi-platform builds
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image for multiple platforms
id: docker-build
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: false
tags: airbyte/source-declarative-manifest:pr-${{ github.event.pull_request.number }}
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=SDM Docker image for PR ${{ github.event.pull_request.number }}
Loading