Skip to content

Commit e86542c

Browse files
authored
Merge pull request #1534 from mathbunnyru/asalikhov/build_x86_images
Build and test amd64 docker images in a dedicated workflow for quick feedback
2 parents d616811 + 1835568 commit e86542c

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

.github/workflows/docker-amd64.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Build and test amd64 Docker Images
2+
# This workflow runs a lot quicker, than building multi-images in docker.yml
3+
# This will allow us to conclude if things work or not far quicker,
4+
# when we don't expect there to be any platform specific breaking change.
5+
6+
on:
7+
pull_request:
8+
paths:
9+
- ".github/workflows/docker-amd64.yml"
10+
11+
- "all-spark-notebook/**"
12+
- "base-notebook/**"
13+
- "datascience-notebook/**"
14+
- "minimal-notebook/**"
15+
- "pyspark-notebook/**"
16+
- "r-notebook/**"
17+
- "scipy-notebook/**"
18+
- "tensorflow-notebook/**"
19+
20+
- "tagging/**"
21+
- "test/**"
22+
- "conftest.py"
23+
- "Makefile"
24+
- "pytest.ini"
25+
- "requirements-dev.txt"
26+
push:
27+
branches:
28+
- main
29+
- master
30+
paths:
31+
- ".github/workflows/docker-amd64.yml"
32+
33+
- "all-spark-notebook/**"
34+
- "base-notebook/**"
35+
- "datascience-notebook/**"
36+
- "minimal-notebook/**"
37+
- "pyspark-notebook/**"
38+
- "r-notebook/**"
39+
- "scipy-notebook/**"
40+
- "tensorflow-notebook/**"
41+
42+
- "tagging/**"
43+
- "test/**"
44+
- "conftest.py"
45+
- "Makefile"
46+
- "pytest.ini"
47+
- "requirements-dev.txt"
48+
workflow_dispatch:
49+
50+
jobs:
51+
build-test-amd64-images:
52+
name: Build and test amd64 Docker Images
53+
runs-on: ubuntu-latest
54+
55+
steps:
56+
- name: Clone Main Repo
57+
uses: actions/checkout@v2
58+
with:
59+
path: main
60+
61+
- name: Set Up Python
62+
uses: actions/setup-python@v2
63+
with:
64+
python-version: 3.x
65+
66+
- name: Install Dev Dependencies
67+
run: |
68+
python -m pip install --upgrade pip
69+
make -C main dev-env
70+
71+
- name: Build Docker Images
72+
run: make -C main build-all
73+
env:
74+
# Full logs for CI build
75+
BUILDKIT_PROGRESS: plain
76+
77+
- name: Test Docker Images
78+
run: make -C main test-all

0 commit comments

Comments
 (0)