Skip to content

Commit 157435e

Browse files
author
Matthew Orris
committed
fix: add debug to verify-pr-commit; add version to container
1 parent 72848cf commit 157435e

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.github/workflows/publish-dev-ci-base-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
# IMAGE_NAME: ci-base-image-dind
1919
IMAGE_NAME: ci-base-image
2020
BRANCH_NAME: ${{github.ref_name}}
21+
VERSION: 1.0.0
2122
runs-on: ubuntu-20.04
2223
steps:
2324
- name: Check Out Repo

.github/workflows/verify-pr-commit.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,15 @@ jobs:
201201
- name: Check
202202
# Remove these install commands when ci-base-image has nightly toolchain
203203
run: |
204-
echo "***************************************-env"
205-
env | grep VERSION
206-
echo "***************************************-show"
207-
rustup show
208204
echo "***************************************"
209-
# rustup toolchain install nightly-2023-07-13
205+
echo "ci-base-image version:"
206+
docker inspect -f '{{ index .Config.Labels "version" }}' ci-base-image
207+
echo "***************************************"
208+
echo "USER:"
209+
whoami
210210
echo "***************************************"
211-
# rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
211+
echo "which cargo?"
212+
type cargo
212213
echo "***************************************"
213214
cargo +nightly-2023-07-13 fmt --check
214215

tools/ci/docker/ci-base-image.dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ RUN apt-get update && \
1111
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && \
1212
rm -rf /var/lib/apt/lists/*
1313

14-
# Install Rust
14+
# Install Rustup
1515
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
1616
ENV PATH="/home/runner/.cargo/bin:/root/.cargo/bin:${PATH}"
1717
ENV RUSTUP_HOME="/root/.cargo"
1818
ENV CARGO_HOME="/root/.cargo"
19-
RUN rustup toolchain install nightly-2023-07-13
20-
RUN rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13
19+
# Install Rust toolchains
20+
RUN rustup show > /docker.build.log 2>&1 && \
21+
rustup toolchain install 1.70.0 >> /docker.build.log 2>&1 && \
22+
rustup toolchain install nightly-2023-07-13 >> /docker.build.log 2>&1 && \
23+
rustup target add x86_64-unknown-linux-gnu --toolchain nightly-2023-07-13 >> /docker.build.log 2>&1
24+
RUN rustup default 1.70.0 >> /docker.build.log 2>&1 && \
25+
echo "**************************************" >> /docker.build.log && \
26+
rustup show >> /docker.build.log 2>&1
2127

2228
RUN git config --system --add safe.directory /__w/frequency/frequency

0 commit comments

Comments
 (0)