Skip to content

Commit

Permalink
chore: update CI to new base image (#5505)
Browse files Browse the repository at this point in the history
* chore: update CI to new base image

* fix: use old cargo-audit
  • Loading branch information
dandanlen authored Dec 16, 2024
1 parent 8c4fd61 commit 2c41714
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/_01_pre_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
cargo-fmt:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -23,7 +23,7 @@ jobs:
audit:
runs-on: namespace-profile-default
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -38,7 +38,7 @@ jobs:
cargo-clippy:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_10_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
unit-tests:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_11_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
unit-tests:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,7 +29,7 @@ jobs:
coverage:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_20_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
compile:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
run: |
mkdir -p ./target/${{ inputs.binary-subdir }}
cp ./target/${{ inputs.binary-subdir }}/deps/libchainflip_engine_v*.so ./target/${{ inputs.binary-subdir }}/ || true
- name: Upload binary artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_25_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
packages:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
profile: [release, production]
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-02-04-ubuntu-22.04-48"
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion ci/docker/development/rust-base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ WORKDIR /
COPY rust-toolchain.toml .
RUN rustup update \
&& cargo install cargo-deb \
&& cargo install cargo-audit \
# Using a specific version rather than latest pending resolution of https://github.com/rustsec/rustsec/issues/1296
&& cargo install --locked --version=^0.20 cargo-audit \
&& rm rust-toolchain.toml

RUN rustc --version && \
Expand Down

0 comments on commit 2c41714

Please sign in to comment.