zip anon extension. only upload zipped extensions

This commit is contained in:
Alek Westover
2023-07-07 11:14:03 -04:00
parent 20137d9588
commit afa797d534
2 changed files with 2 additions and 2 deletions

View File

@@ -960,7 +960,7 @@ jobs:
# In compute image we have a bit different directory layout
mkdir -p extensions-to-upload/share
docker cp ${{ steps.create-container.outputs.CID }}:/usr/local/share/extension ./extensions-to-upload/share/extension
docker cp ${{ steps.create-container.outputs.CID }}:/usr/local/share/extension/*.zip ./extensions-to-upload/share/extension
docker cp ${{ steps.create-container.outputs.CID }}:/usr/local/lib ./extensions-to-upload/lib
# Delete Neon extensitons (they always present on compute-node image)

View File

@@ -753,7 +753,7 @@ FROM scratch AS postgres-extensions
# COPY --from=postgres-cleanup-layer /usr/local/pgsql/lib /usr/local/pgsql/lib
# Custom extensions
COPY --from=pg-anon-pg-build /extensions/anon/lib/ /extensions/anon/lib
COPY --from=pg-anon-pg-build /extensions/anon/share/extension /extensions/anon/share/extension
RUN --from=pg-anon-pg-build zip /extensions/anon/share/extension /extensions/anon/share/extension/anon.zip
#########################################################################################
#