Skip to content

Commit 9e6014f

Browse files
authored
fix: share the cache from the CI workflow (#176)
* fix: share the cache from the CI workflow This isn't necessarily a fix for the missing .venv, but this will remove an extra 2GB cache called ci-venv--{commit} * Don't delete $AGENT_TOOLSDIRECTORY
1 parent 7abeadc commit 9e6014f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: .github/workflows/docker-publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
DOCKER_REPOSITORY: quay.io/unstructured-io/unstructured-api
1010
DOCKER_BUILD_REPOSITORY: quay.io/unstructured-io/build-unstructured-api
1111
PACKAGE: "unstructured-api"
12-
PIPELINE_PACKAGE: "general"
12+
PIPELINE_FAMILY: "general"
1313
PIP_VERSION: "22.2.1"
1414
PYTHON_VERSION: "3.8"
1515

@@ -66,13 +66,13 @@ jobs:
6666
- name: Build image
6767
run: |
6868
# Clear some space (https://github.com/actions/runner-images/issues/2840)
69-
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
69+
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost
7070
7171
ARCH=$(cut -d "/" -f2 <<< ${{ matrix.docker-platform }})
7272
DOCKER_BUILDKIT=1 docker buildx build --platform=$ARCH --load \
7373
--build-arg PIP_VERSION=$PIP_VERSION \
7474
--build-arg BUILDKIT_INLINE_CACHE=1 \
75-
--build-arg PIPELINE_PACKAGE=${{ env.PIPELINE_PACKAGE }} \
75+
--build-arg PIPELINE_PACKAGE=${{ env.PIPELINE_FAMILY }} \
7676
--provenance=false \
7777
--progress plain \
7878
--cache-from $DOCKER_BUILD_REPOSITORY:$ARCH \

0 commit comments

Comments
 (0)