Skip to content

Release

Release #2

Workflow file for this run

name: Release
on:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
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 Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.9.1'
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
- name: Build
run: |
cargo +nightly build --release -p hyperbridge
- 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/hyperbridge:$(cargo get package.version --entry ./parachain/node) -t polytopelabs/hyperbridge:latest -f ./scripts/docker/slim.Dockerfile .
- name: Docker Push
run: |
docker push polytopelabs/hyperbridge:$(cargo get package.version --entry ./parachain/node)
docker push polytopelabs/hyperbridge:latest