24
24
build-images :
25
25
strategy :
26
26
matrix :
27
- # NOTE(robinson) - temporarily disabling arm since the libreoffice packages only
28
- # works on amd right now
29
- docker-platform : ["linux/amd64"]
30
- # docker-platform: ["linux/arm64", "linux/amd64"]
27
+ docker-platform : ["linux/arm64", "linux/amd64"]
31
28
runs-on : ubuntu-latest-m
32
29
needs : set-short-sha
33
30
env :
53
50
make docker-dl-packages
54
51
ARCH=$(cut -d "/" -f2 <<< ${{ matrix.docker-platform }})
55
52
DOCKER_BUILDKIT=1 docker buildx build --platform=$ARCH --load \
53
+ -f Dockerfile-$ARCH \
56
54
--build-arg PIP_VERSION=$PIP_VERSION \
57
55
--build-arg BUILDKIT_INLINE_CACHE=1 \
58
56
--progress plain \
72
70
DOCKER_PLATFORM="${{ matrix.docker-platform }}" DOCKER_IMAGE="$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA" \
73
71
make docker-test CI=true TEST_FILE=test_unstructured/partition/test_text.py
74
72
fi
75
- # NOTE(robinson) - disabling smoke because there's no notebook user anymore
76
- # DOCKER_IMAGE=$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA make docker-smoke-test
73
+ DOCKER_IMAGE=$DOCKER_BUILD_REPOSITORY:$ARCH-$SHORT_SHA make docker-smoke-test
77
74
- name : Push images
78
75
run : |
79
76
# write to the build repository to cache for the publish-images job
@@ -97,25 +94,22 @@ jobs:
97
94
- name : Pull AMD image
98
95
run : |
99
96
docker pull $DOCKER_BUILD_REPOSITORY:amd64-$SHORT_SHA
100
- # NOTE(robinson) - put this back in when we reenable ARM
101
- # - name: Pull ARM image
102
- # run: |
103
- # docker pull $DOCKER_BUILD_REPOSITORY:arm64-$SHORT_SHA
97
+ - name : Pull ARM image
98
+ run : |
99
+ docker pull $DOCKER_BUILD_REPOSITORY:arm64-$SHORT_SHA
104
100
- name : Push latest build tags for AMD and ARM
105
101
run : |
106
102
# these are used to construct the final manifest but also cache-from in subsequent runs
107
103
docker tag $DOCKER_BUILD_REPOSITORY:amd64-$SHORT_SHA $DOCKER_BUILD_REPOSITORY:amd64
108
104
docker push $DOCKER_BUILD_REPOSITORY:amd64
109
- # NOTE(robinson) - update this when we reenable ARM
110
- # docker tag $DOCKER_BUILD_REPOSITORY:arm64-$SHORT_SHA $DOCKER_BUILD_REPOSITORY:arm64
111
- # docker push $DOCKER_BUILD_REPOSITORY:arm64
105
+ docker tag $DOCKER_BUILD_REPOSITORY:arm64-$SHORT_SHA $DOCKER_BUILD_REPOSITORY:arm64
106
+ docker push $DOCKER_BUILD_REPOSITORY:arm64
112
107
- name : Push multiarch manifest
113
108
run : |
114
- # NOTE(robinson) - update this when we reenable ARM
115
- docker manifest create ${DOCKER_REPOSITORY}:latest $DOCKER_BUILD_REPOSITORY:amd64
109
+ docker manifest create ${DOCKER_REPOSITORY}:latest $DOCKER_BUILD_REPOSITORY:amd64 $DOCKER_BUILD_REPOSITORY:arm64
116
110
docker manifest push $DOCKER_REPOSITORY:latest
117
- docker manifest create ${DOCKER_REPOSITORY}:$SHORT_SHA $DOCKER_BUILD_REPOSITORY:amd64
111
+ docker manifest create ${DOCKER_REPOSITORY}:$SHORT_SHA $DOCKER_BUILD_REPOSITORY:amd64 $DOCKER_BUILD_REPOSITORY:arm64
118
112
docker manifest push $DOCKER_REPOSITORY:$SHORT_SHA
119
113
VERSION=$(grep -Po '(?<=__version__ = ")[^"]*' unstructured/__version__.py)
120
- docker manifest create ${DOCKER_REPOSITORY}:$VERSION $DOCKER_BUILD_REPOSITORY:amd64
114
+ docker manifest create ${DOCKER_REPOSITORY}:$VERSION $DOCKER_BUILD_REPOSITORY:amd64 $DOCKER_BUILD_REPOSITORY:arm64
121
115
docker manifest push $DOCKER_REPOSITORY:$VERSION
0 commit comments