Build balance monitor #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build balance monitor | |
on: | |
workflow_dispatch: # manually run | |
inputs: | |
tag: | |
description: image tag | |
required: true | |
env: | |
CI: true | |
jobs: | |
publish: | |
name: Build & publish docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- run: cd packages/contracts | |
- name: Docker login | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_LOGIN }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Build & publish balance monitor image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
context: packages/balance-monitor | |
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 | |
tags: subsquid/balance-monitor:latest | |
- name: Build & publish rewards monitor image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
context: . | |
file: packages/rewards-calculator/Dockerfile-endpoints | |
platforms: linux/amd64 | |
tags: subsquid/reward-monitor:${{ inputs.tag }} |