Skip to content

Commit b89d65d

Browse files
committed
Merge branch 'devnet-ready' of https://github.com/opentensor/subtensor into devnet-ready
2 parents 6d65d4b + 97be330 commit b89d65d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+8708
-2294
lines changed

.github/workflows/cargo-audit.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- labeled
66
- unlabeled
77
- synchronize
8+
- opened
89
concurrency:
910
group: cargo-audit-${{ github.ref }}
1011
cancel-in-progress: true
@@ -24,10 +25,19 @@ jobs:
2425
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
2526
2627
- name: Install cargo-audit
27-
run: cargo install --version 0.20.1 --force cargo-audit
28+
run: cargo install --force cargo-audit
2829

2930
- name: Display cargo-audit --version
3031
run: cargo audit --version
3132

3233
- name: cargo audit
33-
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this
34+
run: |
35+
cargo audit --ignore RUSTSEC-2024-0336 \
36+
--ignore RUSTSEC-2021-0127 \
37+
--ignore RUSTSEC-2024-0370 \
38+
--ignore RUSTSEC-2022-0080 \
39+
--ignore RUSTSEC-2022-0061 \
40+
--ignore RUSTSEC-2020-0168 \
41+
--ignore RUSTSEC-2024-0384 \
42+
--ignore RUSTSEC-2024-0388 \
43+
--ignore RUSTSEC-2024-0421

.github/workflows/check-devnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Devnet Deploy Check
33
on:
44
pull_request:
55
branches: [devnet, devnet-ready]
6-
types: [labeled, unlabeled, synchronize]
6+
types: [labeled, unlabeled, synchronize, opened]
77

88
env:
99
CARGO_TERM_COLOR: always

.github/workflows/check-finney.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Finney Deploy Check
33
on:
44
pull_request:
55
branches: [finney, main]
6-
types: [labeled, unlabeled, synchronize]
6+
types: [labeled, unlabeled, synchronize, opened]
77

88
env:
99
CARGO_TERM_COLOR: always

.github/workflows/check-testnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Testnet Deploy Check
33
on:
44
pull_request:
55
branches: [testnet, testnet-ready]
6-
types: [labeled, unlabeled, synchronize]
6+
types: [labeled, unlabeled, synchronize, opened]
77

88
env:
99
CARGO_TERM_COLOR: always

.github/workflows/docker.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
inputs:
8+
branch-or-tag:
9+
description: "Branch or tag to use for the Docker image tag and ref to checkout (optional)"
10+
required: false
11+
default: ""
12+
13+
push:
14+
branches:
15+
- devnet-ready
16+
- devnet
17+
- testnet
718

819
permissions:
920
contents: read
@@ -16,8 +27,18 @@ jobs:
1627
runs-on: SubtensorCI
1728

1829
steps:
30+
- name: Determine Docker tag and ref
31+
id: tag
32+
run: |
33+
branch_or_tag="${{ github.event.inputs.branch-or-tag || github.ref_name }}"
34+
echo "Determined branch or tag: $branch_or_tag"
35+
echo "tag=$branch_or_tag" >> $GITHUB_ENV
36+
echo "ref=$branch_or_tag" >> $GITHUB_ENV
37+
1938
- name: Checkout code
2039
uses: actions/checkout@v4
40+
with:
41+
ref: ${{ env.ref }}
2142

2243
- name: Set up QEMU
2344
uses: docker/setup-qemu-action@v2
@@ -32,18 +53,10 @@ jobs:
3253
username: ${{ github.actor }}
3354
password: ${{ secrets.GITHUB_TOKEN }}
3455

35-
- name: Extract metadata (tags, labels) for Docker
36-
id: meta
37-
uses: docker/metadata-action@v4
38-
with:
39-
images: ghcr.io/${{ github.repository }}
40-
4156
- name: Build and push Docker image
4257
uses: docker/build-push-action@v4
4358
with:
4459
context: .
4560
push: true
4661
tags: |
47-
${{ steps.meta.outputs.tags }}
48-
ghcr.io/${{ github.repository }}:latest
49-
labels: ${{ steps.meta.outputs.labels }}
62+
ghcr.io/${{ github.repository }}:${{ env.tag }}

.github/workflows/label-triggers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
pull_request:
44
types:
55
- labeled
6+
- unlabeled
7+
- synchronize
8+
- opened
69

710
permissions:
811
issues: write

0 commit comments

Comments
 (0)