Skip to content

Commit

Permalink
try github cache for pgrx image build
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy committed Dec 26, 2024
1 parent 987ada3 commit c5afe8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pgrx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
context: .
file: ./docker/pgrx.Dockerfile
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: "linux/amd64,linux/arm64"
build-args: |
PGRX_VERSION=${{ github.event.inputs.version }}
Expand Down
1 change: 1 addition & 0 deletions docker/pgrx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ USER ubuntu
ENV PATH="$PATH:/home/ubuntu/.cargo/bin"
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

WORKDIR /workspace
RUN rustup toolchain install ${RUST_TOOLCHAIN}
RUN rustup target add $(uname -m)-unknown-linux-gnu

Expand Down

0 comments on commit c5afe8e

Please sign in to comment.