Skip to content

Commit

Permalink
pg-cnpg: assert PGDATA is set in env (#55)
Browse files Browse the repository at this point in the history
* pg-cnpg: assert PGDATA is set in env

* pg-cnpg: temporarily disable ARM builds
  • Loading branch information
vrmiguel authored Jan 30, 2024
1 parent f613d62 commit e112cf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@ jobs:
fi
docker buildx build \
--build-arg PG_VERSION=${{ matrix.pg_version }} \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--tag quay.io/tembo/tembo-pg-cnpg:pg${{ matrix.pg_version }}-${{ steps.sha.outputs.sha }} \
--pull ${PUSH_FLAG} ./tembo-pg-cnpg
3 changes: 3 additions & 0 deletions tembo-pg-cnpg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ FROM quay.io/tembo/tembo-pg-slim:pg${PG_VERSION}

USER root

# PGDATA is set in tembo-pg-slim and used by dependents on this image.
RUN if [ -z "${PGDATA}" ]; then echo "PGDATA is not set"; exit 1; fi

# Install trunk
COPY --from=builder /usr/local/cargo/bin/trunk /usr/bin/trunk
COPY ./requirements.txt .
Expand Down

0 comments on commit e112cf3

Please sign in to comment.