Skip to content

Commit 4bb09a1

Browse files
authored
Fix tesseract release workflow files (#444)
1 parent dbca420 commit 4bb09a1

39 files changed

Lines changed: 25783 additions & 28250 deletions

File tree

.github/workflows/release.yml

Lines changed: 260 additions & 252 deletions
Large diffs are not rendered by default.
Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
name: Tesseract Feature Tag Docker Publish
22

33
on:
4-
push:
5-
tags:
6-
- "tesseract-consensus-[a-z]+"
4+
push:
5+
tags:
6+
- "tesseract-consensus-[a-z]+"
77

88
concurrency:
9-
group: release-${{ github.ref }}
10-
cancel-in-progress: true
9+
group: release-${{ github.ref }}
10+
cancel-in-progress: true
1111

1212
jobs:
13-
build_and_publish:
14-
runs-on: release-runner
15-
steps:
16-
- name: Checkout sources
17-
uses: actions/checkout@v3
18-
with:
19-
token: ${{ secrets.GH_TOKEN }}
20-
submodules: recursive
21-
22-
- uses: webfactory/ssh-agent@v0.5.4
23-
with:
24-
ssh-private-key: "${{ secrets.SSH_KEY }}"
25-
26-
- name: Install toolchain
27-
uses: dtolnay/rust-toolchain@nightly
28-
with:
29-
toolchain: stable
30-
31-
- name: Build
32-
run: |
33-
sudo apt-get update -y
34-
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config
35-
feature_flag=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f"3")
36-
cargo build --release -p tesseract --features $feature_flag
37-
- name: Install Cargo get
38-
run: cargo install cargo-get
39-
40-
- name: Login to Docker Hub
41-
uses: docker/login-action@v3
42-
with:
43-
username: ${{ secrets.DOCKER_USERNAME }}
44-
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
45-
46-
- name: Build the Docker image
47-
run: |
48-
feature_flag=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f"3")
49-
docker build -t polytopelabs/tesseract-consensus:${feature_flag} -f ./Dockerfile .
50-
- name: Docker Push
51-
run: |
52-
feature_flag=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f"3")
53-
docker push polytopelabs/tesseract-consensus:${feature_flag}
13+
build_and_publish:
14+
runs-on: release-runner
15+
steps:
16+
- name: Checkout sources
17+
uses: actions/checkout@v3
18+
with:
19+
token: ${{ secrets.GH_TOKEN }}
20+
submodules: recursive
21+
22+
- uses: webfactory/ssh-agent@v0.5.4
23+
with:
24+
ssh-private-key: "${{ secrets.SSH_KEY }}"
25+
26+
- name: Install toolchain
27+
uses: dtolnay/rust-toolchain@nightly
28+
with:
29+
toolchain: stable
30+
31+
- name: Build
32+
run: |
33+
sudo apt-get update -y
34+
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config
35+
feature_flag=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f"3")
36+
cargo build --release -p tesseract-consensus --features $feature_flag
37+
- name: Install Cargo get
38+
run: cargo install cargo-get
39+
40+
- name: Login to Docker Hub
41+
uses: docker/login-action@v3
42+
with:
43+
username: ${{ secrets.DOCKER_USERNAME }}
44+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
45+
46+
- name: Build the Docker image
47+
run: |
48+
feature_flag=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f"3")
49+
docker build -t polytopelabs/tesseract-consensus:${feature_flag} -f ./tesseract/consensus/Dockerfile .
50+
- name: Docker Push
51+
run: |
52+
feature_flag=$(echo "$GITHUB_REF_NAME" | cut -d'-' -f"3")
53+
docker push polytopelabs/tesseract-consensus:${feature_flag}
Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
name: Tesseract Docker Publish
22

33
on:
4-
push:
5-
tags:
6-
- "tesseract-consensus-v[0-9]+.[0-9]+.[0-9]+"
4+
push:
5+
tags:
6+
- "tesseract-consensus-v[0-9]+.[0-9]+.[0-9]+"
77

88
concurrency:
9-
group: release-${{ github.ref }}
10-
cancel-in-progress: true
9+
group: release-${{ github.ref }}
10+
cancel-in-progress: true
1111

1212
jobs:
13-
build_and_publish:
14-
runs-on: release-runner
15-
steps:
16-
- name: Checkout sources
17-
uses: actions/checkout@v3
18-
with:
19-
token: ${{ secrets.GH_TOKEN }}
20-
submodules: recursive
21-
22-
- uses: webfactory/ssh-agent@v0.5.4
23-
with:
24-
ssh-private-key: "${{ secrets.SSH_KEY }}"
25-
26-
- name: Install toolchain
27-
uses: dtolnay/rust-toolchain@nightly
28-
with:
29-
toolchain: stable
30-
31-
- name: Build
32-
run: |
33-
sudo apt-get update -y
34-
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config
35-
cargo build --release -p tesseract
36-
- name: Install Cargo get
37-
run: cargo install cargo-get
38-
39-
- name: Login to Docker Hub
40-
uses: docker/login-action@v3
41-
with:
42-
username: ${{ secrets.DOCKER_USERNAME }}
43-
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
44-
45-
- name: Build the Docker image
46-
run: docker build -t polytopelabs/tesseract-consensus:v$(cargo get package.version --entry ./relayer) -t polytopelabs/tesseract-consensus:latest -f ./Dockerfile .
47-
48-
- name: Docker Push
49-
run: |
50-
docker push polytopelabs/tesseract-consensus:v$(cargo get package.version --entry ./relayer)
51-
docker push polytopelabs/tesseract-consensus:latest
13+
build_and_publish:
14+
runs-on: release-runner
15+
steps:
16+
- name: Checkout sources
17+
uses: actions/checkout@v3
18+
with:
19+
token: ${{ secrets.GH_TOKEN }}
20+
submodules: recursive
21+
22+
- uses: webfactory/ssh-agent@v0.5.4
23+
with:
24+
ssh-private-key: "${{ secrets.SSH_KEY }}"
25+
26+
- name: Install toolchain
27+
uses: dtolnay/rust-toolchain@nightly
28+
with:
29+
toolchain: stable
30+
31+
- name: Build
32+
run: |
33+
sudo apt-get update -y
34+
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config
35+
cargo build --release -p tesseract-consensus
36+
- name: Install Cargo get
37+
run: cargo install cargo-get
38+
39+
- name: Login to Docker Hub
40+
uses: docker/login-action@v3
41+
with:
42+
username: ${{ secrets.DOCKER_USERNAME }}
43+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
44+
45+
- name: Build the Docker image
46+
run: docker build -t polytopelabs/tesseract-consensus:v$(cargo get package.version --entry ./tesseract/consensus/relayer) -t polytopelabs/tesseract-consensus:latest -f ./tesseract/consensus/Dockerfile .
47+
48+
- name: Docker Push
49+
run: |
50+
docker push polytopelabs/tesseract-consensus:v$(cargo get package.version --entry ./tesseract/consensus/relayer)
51+
docker push polytopelabs/tesseract-consensus:latest
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
name: Tesseract Docker Publish
22

33
on:
4-
push:
5-
tags:
6-
- "tesseract-v[0-9]+.[0-9]+.[0-9]+"
4+
push:
5+
tags:
6+
- "tesseract-v[0-9]+.[0-9]+.[0-9]+"
77

88
concurrency:
9-
group: release-${{ github.ref }}
10-
cancel-in-progress: true
9+
group: release-${{ github.ref }}
10+
cancel-in-progress: true
1111

1212
env:
13-
TELEMETRY_SECRET_KEY: ${{ secrets.TELEMETRY_SECRET_KEY }}
13+
TELEMETRY_SECRET_KEY: ${{ secrets.TELEMETRY_SECRET_KEY }}
1414

1515
jobs:
16-
build_and_publish:
17-
runs-on: release-runner
18-
steps:
19-
- name: Checkout sources
20-
uses: actions/checkout@v3
21-
with:
22-
token: ${{ secrets.GH_TOKEN }}
23-
submodules: recursive
24-
25-
- uses: webfactory/ssh-agent@v0.5.4
26-
with:
27-
ssh-private-key: "${{ secrets.SSH_KEY }}"
28-
29-
- name: Install toolchain
30-
uses: dtolnay/rust-toolchain@nightly
31-
with:
32-
toolchain: stable
33-
34-
- name: Build
35-
run: |
36-
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config
37-
cargo build --release -p tesseract
38-
39-
- name: Install Cargo get
40-
run: cargo install cargo-get
41-
42-
- name: Login to Docker Hub
43-
uses: docker/login-action@v3
44-
with:
45-
username: ${{ secrets.DOCKER_USERNAME }}
46-
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
47-
48-
- name: Build the Docker image
49-
run: docker build -t polytopelabs/tesseract:v$(cargo get package.version --entry ./tesseract/relayer) -t polytopelabs/tesseract:latest -f ./scripts/docker/tesseract.Dockerfile .
50-
51-
- name: Docker Push
52-
run: |
53-
docker push polytopelabs/tesseract:v$(cargo get package.version --entry ./tesseract/relayer)
54-
docker push polytopelabs/tesseract:latest
16+
build_and_publish:
17+
runs-on: release-runner
18+
steps:
19+
- name: Checkout sources
20+
uses: actions/checkout@v3
21+
with:
22+
token: ${{ secrets.GH_TOKEN }}
23+
submodules: recursive
24+
25+
- uses: webfactory/ssh-agent@v0.5.4
26+
with:
27+
ssh-private-key: "${{ secrets.SSH_KEY }}"
28+
29+
- name: Install toolchain
30+
uses: dtolnay/rust-toolchain@nightly
31+
with:
32+
toolchain: stable
33+
34+
- name: Build
35+
run: |
36+
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config
37+
cargo build --release -p tesseract
38+
39+
- name: Install Cargo get
40+
run: cargo install cargo-get
41+
42+
- name: Login to Docker Hub
43+
uses: docker/login-action@v3
44+
with:
45+
username: ${{ secrets.DOCKER_USERNAME }}
46+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
47+
48+
- name: Build the Docker image
49+
run: docker build -t polytopelabs/tesseract:v$(cargo get package.version --entry ./tesseract/messaging/relayer) -t polytopelabs/tesseract:latest -f ./scripts/docker/tesseract.Dockerfile .
50+
51+
- name: Docker Push
52+
run: |
53+
docker push polytopelabs/tesseract:v$(cargo get package.version --entry ./tesseract/messaging/relayer)
54+
docker push polytopelabs/tesseract:latest

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ nexus-runtime = { path = "./parachain/runtimes/nexus", default-features = false
259259

260260
# tesseract
261261
tesseract-primitives = { path = "tesseract/messaging/primitives" }
262-
tesseract-consensus = { path = "tesseract/consensus" }
263262
tesseract-messaging = { path = "tesseract/messaging/messaging" }
264263
tesseract-fisherman = { path = "tesseract/messaging/fisherman" }
265264
tesseract-substrate = { path = "tesseract/messaging/substrate" }
@@ -277,7 +276,7 @@ tesseract-bsc = { path = "tesseract/consensus/bsc" }
277276
tesseract-integration-tests = { path = "tesseract/consensus/integration-tests" }
278277
tesseract-sync-committee = { path = "tesseract/consensus/sync-committee" }
279278
tesseract-grandpa = { path = "tesseract/consensus/grandpa" }
280-
tesseract-consensus-relayer = { path = "tesseract/consensus/relayer" }
279+
tesseract-consensus = { path = "tesseract/consensus/relayer" }
281280

282281

283282
[workspace.dependencies.codec]

0 commit comments

Comments
 (0)