Skip to content

Commit

Permalink
Upgrade testnet (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-tsurko authored Sep 2, 2024
2 parents 5b7256a + 8afb82d commit c4b6033
Show file tree
Hide file tree
Showing 110 changed files with 2,906 additions and 22,341 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-release-devnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Release Devnet

on:
push:
branches: [ "devnet" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
run: docker login -u atletanetwork -p ${{ secrets.REGISTRYPASS }} docker.io


- name: Build and Push Docker Image
run: |
DATE=$(date +%d%m%y)
HMS=$(date +%H%M%S)
echo "DATE: $DATE, HMS: $HMS"
docker build --build-arg BUILD_FEATURES=devnet-runtime -t docker.io/atletanetwork/atleta-node:devnet-${DATE}-${HMS} .
docker tag docker.io/atletanetwork/atleta-node:devnet-${DATE}-${HMS} docker.io/atletanetwork/atleta-node:devnet-latest
docker push docker.io/atletanetwork/atleta-node:devnet-${DATE}-${HMS}
docker push docker.io/atletanetwork/atleta-node:devnet-latest
35 changes: 35 additions & 0 deletions .github/workflows/build-release-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Release Devnet

on:
workflow_dispatch:
push:
branches: [ "testnet" ]

jobs:
deploy_image:

environment: testnet

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up docker buildx
uses: docker/setup-buildx-action@v3

- name: Login to docker hub
run: docker login -u atletanetwork -p ${{ secrets.REGISTRYPASS }} docker.io

- name: Set timestamp variables
run: |
DATE=$(date +%d%m%y)
HMS=$(date +%H%M%S)
echo "DATE: $DATE, HMS: $HMS"
- name: Build and push docker image
run: |
docker build --build-arg BUILD_FEATURES=testnet-runtime -t docker.io/atletanetwork/atleta-node:testnet-${DATE}-${HMS} .
docker tag docker.io/atletanetwork/atleta-node:testnet-${DATE}-${HMS} docker.io/atletanetwork/atleta-node:testnet-latest
docker push docker.io/atletanetwork/atleta-node:testnet-${DATE}-${HMS}
docker push docker.io/atletanetwork/atleta-node:testnet-latest
11 changes: 8 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: wasm32-unknown-unknown
components: rustfmt clippy rust-src
- name: Install system deps
run: sudo apt-get install protobuf-compiler jq ripgrep
run: sudo apt-get install protobuf-compiler jq ripgrep shellcheck fd-find
- name: Build
run: cargo build --locked
- name: Run tests
run: cargo test --locked
- name: Check format
run: cargo fmt -- --check
run: |
rustup toolchain add nightly-x86_64-unknown-linux-gnu
rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
cargo +nightly fmt -- --check
- name: Clippy checks
run: cargo clippy --all-targets -- --deny warnings
- name: Clippy checks all features (exclude node and runtime)
Expand All @@ -38,3 +41,5 @@ jobs:
| jq '.packages | .[] | .name' \
| rg --invert-match 'atleta-(node|runtime)' \
| xargs -I {} cargo clippy --package {} --all-targets --all-features -- --deny warnings --deny missing_docs
- name: Run shellcheck
run: fdfind --type executable --exec bash -c 'echo {}; shellcheck {}'
58 changes: 0 additions & 58 deletions .github/workflows/deploy-devnet.yml

This file was deleted.

Loading

0 comments on commit c4b6033

Please sign in to comment.