From 6af2f8dfea4f0da244e05e144834abb3f4492141 Mon Sep 17 00:00:00 2001 From: Hadrien Mary Date: Fri, 13 Dec 2024 10:03:30 -0500 Subject: [PATCH] Add `/root/.pixi/bin` to the `PATH` and associated test --- .github/workflows/build.yml | 4 ++++ Dockerfile | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66c1c6e..6445fa7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -141,8 +141,12 @@ jobs: if: needs.version.outputs.push == 'true' run: | docker images + # Test the pixi binary is available docker run --rm ghcr.io/prefix-dev/pixi:${{ needs.version.outputs.new-version }}-${{ steps.image-variables.outputs.tag }} pixi --version + # Test end-to-end pixi workflow docker run --rm ghcr.io/prefix-dev/pixi:${{ needs.version.outputs.new-version }}-${{ steps.image-variables.outputs.tag }} sh -c "mkdir /app && cd /app && pixi init && pixi add python && pixi run python --version" + # Test pixi global binaries are in PATH + docker run --rm pixi-docker sh -c "pixi global install rsync && rsync --version" - name: Image digest run: echo ${{ steps.build.outputs.digest }} diff --git a/Dockerfile b/Dockerfile index f32d074..a9080d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,3 +13,4 @@ RUN /pixi --version FROM --platform=$TARGETPLATFORM $BASE_IMAGE COPY --from=builder --chown=root:root --chmod=0555 /pixi /usr/local/bin/pixi +ENV PATH="/root/.pixi/bin:${PATH}"