Skip to content

Commit d1d18ad

Browse files
committed
fix: remove provenance/sbom from per-platform builds, clean up Dockerfile
publish.yml: - Set provenance: false and sbom: false in per-platform build jobs (provenance with push-by-digest produces index digests that break the multi-arch manifest merge) - Remove redundant push: true (already set in outputs) Dockerfile: - Remove redundant apt-mark manual ca-certificates (already manual from explicit install) - Clean up PGDG source list and keyring after build - Remove redundant || exit 1 from HEALTHCHECK
1 parent b4fc226 commit d1d18ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ jobs:
6161
uses: docker/build-push-action@v7
6262
with:
6363
context: .
64-
push: true
6564
platforms: ${{ matrix.platform }}
66-
provenance: true
67-
sbom: true
65+
provenance: false
66+
sbom: false
6867
labels: ${{ steps.meta.outputs.labels }}
6968
build-args: |
7069
PG_VERSION=${{ matrix.pg_version }}

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ RUN set -eux \
4040
&& cd /usr/src/pgvector \
4141
&& make \
4242
&& make install \
43-
&& apt-mark manual ca-certificates \
4443
&& apt-get purge -y --auto-remove \
4544
build-essential \
4645
git \
@@ -51,12 +50,14 @@ RUN set -eux \
5150
lsb-release \
5251
gnupg \
5352
&& apt-get clean \
54-
&& rm -rf /var/lib/apt/lists/* /usr/src/pgvector
53+
&& rm -rf /var/lib/apt/lists/* /usr/src/pgvector \
54+
/etc/apt/sources.list.d/pgdg.list \
55+
/usr/share/keyrings/postgresql-archive-keyring.gpg
5556

5657
# Copy initialization scripts
5758
COPY docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d/
5859

5960
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
60-
CMD pg_isready -U postgres || exit 1
61+
CMD pg_isready -U postgres
6162

6263
EXPOSE 5432

0 commit comments

Comments
 (0)