Skip to content

Improve gas cost estimation (#337) #16

Improve gas cost estimation (#337)

Improve gas cost estimation (#337) #16

name: Tesseract Docker Publish
on:
push:
tags:
- "tesseract-v[0-9]+.[0-9]+.[0-9]+"
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
env:
TELEMETRY_SECRET_KEY: ${{ secrets.TELEMETRY_SECRET_KEY }}
jobs:
build_and_publish:
runs-on: release-runner
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
submodules: recursive
- uses: webfactory/[email protected]
with:
ssh-private-key: "${{ secrets.SSH_KEY }}"
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: stable
- name: Build
run: |
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config
cargo build --release -p tesseract
- name: Install Cargo get
run: cargo install cargo-get
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build the Docker image
run: docker build -t polytopelabs/tesseract:v$(cargo get package.version --entry ./tesseract/relayer) -t polytopelabs/tesseract:latest -f ./scripts/docker/tesseract.Dockerfile .
- name: Docker Push
run: |
docker push polytopelabs/tesseract:v$(cargo get package.version --entry ./tesseract/relayer)
docker push polytopelabs/tesseract:latest