Skip to content

Commit

Permalink
Fix envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Dec 16, 2024
1 parent 229b1ff commit 3e9f613
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions contrib/envvar/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG PG_VERSION=17
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

ARG RELEASE=1.0.0
ARG EXTENSION_NAME
ARG EXTENSION_VERSION

# Extension build dependencies
RUN curl -O https://api.pgxn.org/dist/envvar/${RELEASE}/envvar-${RELEASE}.zip \
&& unzip envvar-${RELEASE}.zip \
&& cd envvar-${RELEASE} && make
RUN curl -O https://api.pgxn.org/dist/${EXTENSION_NAME}/${EXTENSION_VERSION}/${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \
&& unzip ${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \
&& cd ${EXTENSION_NAME}-${EXTENSION_VERSION} && make
WORKDIR /app/${EXTENSION_NAME}-${EXTENSION_VERSION}
2 changes: 1 addition & 1 deletion contrib/envvar/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ apt = ["libc6"]
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "cd envvar-1.0.0 && make install"
install_command = "make install"

0 comments on commit 3e9f613

Please sign in to comment.