network-docker #30
Workflow file for this run
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: network-docker | |
on: | |
workflow_dispatch: # manually run | |
inputs: | |
tag: | |
description: image tag | |
required: true | |
env: | |
CI: true | |
jobs: | |
publish: | |
name: Build & publish docker images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
token: ${{ secrets.NETWORK_REPO_GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_LOGIN }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Build scheduler | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
target: network-scheduler | |
tags: subsquid/network-scheduler:test | |
- name: Get scheduler version | |
run: echo "SCHEDULER_VERSION=$(docker run --rm subsquid/network-scheduler:test network-scheduler --version | cut -d ' ' -f2)" >> $GITHUB_ENV | |
- name: Build & publish scheduler | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386 | |
target: network-scheduler | |
push: true | |
tags: | | |
subsquid/network-scheduler:${{ env.SCHEDULER_VERSION }} | |
subsquid/network-scheduler:${{ inputs.tag }} | |
- name: Build query gateway | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
target: query-gateway | |
tags: subsquid/query-gateway:test | |
- name: Get query gateway version | |
run: echo "GATEWAY_VERSION=$(docker run --rm subsquid/query-gateway:test query-gateway --version | cut -d ' ' -f2)" >> $GITHUB_ENV | |
- name: Build & publish query gateway | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386 | |
target: query-gateway | |
push: true | |
tags: | | |
subsquid/query-gateway:${{ env.GATEWAY_VERSION }} | |
subsquid/query-gateway:${{ inputs.tag }} |