Skip to content

Commit

Permalink
ci: move to nsc container registry 🏎️ (#5649)
Browse files Browse the repository at this point in the history
* ci: move to nsc container registry 🏎️

* fix: rust base image tag πŸ›
  • Loading branch information
ahasna authored Feb 18, 2025
1 parent 7f2ad67 commit be61eef
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 37 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/_01_pre_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ jobs:
cargo-fmt:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2025-01-10"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: "nscr.io/n0ie27k9ikobs/chainflip-backend/rust-base:nightly-2025-01-1"

steps:
- name: Checkout πŸ›’
Expand All @@ -38,10 +35,7 @@ jobs:
cargo-clippy:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2025-01-10"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: "nscr.io/n0ie27k9ikobs/chainflip-backend/rust-base:nightly-2025-01-1"

steps:
- name: Checkout πŸ›’
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_10_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ jobs:
unit-tests:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2025-01-10"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: "nscr.io/n0ie27k9ikobs/chainflip-backend/rust-base:nightly-2025-01-1"

steps:
- name: Checkout πŸ›’
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/_11_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ jobs:
unit-tests:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2025-01-10"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: "nscr.io/n0ie27k9ikobs/chainflip-backend/rust-base:nightly-2025-01-1"
steps:
- name: Checkout πŸ›’
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
Expand All @@ -29,10 +26,7 @@ jobs:
coverage:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2025-01-10"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: "nscr.io/n0ie27k9ikobs/chainflip-backend/rust-base:nightly-2025-01-1"
steps:
- name: Checkout πŸ›’
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_20_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ jobs:
compile:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2025-01-10"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: "nscr.io/n0ie27k9ikobs/chainflip-backend/rust-base:nightly-2025-01-1"

steps:
- name: Checkout πŸ›’
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_25_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ jobs:
packages:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2025-01-10"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: "nscr.io/n0ie27k9ikobs/chainflip-backend/rust-base:nightly-2025-01-1"
env:
NSC_CACHE_PATH: "/cache"
volumes:
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/docker-build-rust-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
default: false
env:
FORCE_COLOR: 1
REGISTRY: ghcr.io
IMAGE_NAME: "${{ github.repository }}/rust-base"
REGISTRY: nscr.io/n0ie27k9ikobs
IMAGE_NAME: "chainflip-backend/rust-base"

jobs:
build:
Expand Down Expand Up @@ -54,13 +54,6 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: ${{ steps.image_tags.outputs.image_tag }}

- name: Login to Github Container Registry πŸ”‘
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push πŸ—οΈπŸ«Έ
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
with:
Expand Down

0 comments on commit be61eef

Please sign in to comment.