File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments