Use BUILD_TAG in compute_ctl binary. (#4541)

Pass BUILD_TAG to compute_ctl binary. 
We need it to access versioned extension storage.
This commit is contained in:
Anastasia Lubennikova
2023-06-22 17:06:16 +03:00
committed by GitHub
parent d3aa8a48ea
commit 2f618f46be
4 changed files with 15 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ ARG PG_VERSION
ARG REPOSITORY=neondatabase
ARG IMAGE=rust
ARG TAG=pinned
ARG BUILD_TAG
#########################################################################################
#
@@ -634,6 +635,9 @@ RUN make -j $(getconf _NPROCESSORS_ONLN) \
#
#########################################################################################
FROM $REPOSITORY/$IMAGE:$TAG AS compute-tools
ARG BUILD_TAG
ENV BUILD_TAG=$BUILD_TAG
USER nonroot
# Copy entire project to get Cargo.* files with proper dependencies for the whole project
COPY --chown=nonroot . .