Skip to content

Workflow file for this run

name: Build and push Docker image
on:
push:
branches: [main, testnet, github-ci-test]
tags:
- "*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-n-push:
permissions: write-all
strategy:
matrix:
arch:
- name: linux/amd64
runner: ubuntu-22.04-32core-karl
sccache_arch: x86_64
- name: linux/arm64
runner: ubuntu-24.04-32core-arm
sccache_arch: aarch64
runs-on: ${{ matrix.arch.runner }}
steps:
- uses: actions/checkout@v3
- id: commit
uses: prompt/actions-commit-hash@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare build
id: prepare
run: |
echo "SANITIZED_REF=$(echo "${GITHUB_REF##*/}" | tr '/' '-')" >> $GITHUB_ENV
echo "${{ secrets.AWS_ACCESS_KEY_ID }}" > "$HOME/aws-key-id.txt"
echo "${{ secrets.AWS_SECRET_ACCESS_KEY }}" > "$HOME/aws-secret-key.txt"
echo "AWS_ACCESS_KEY_ID_PATH=$HOME/aws-key-id.txt" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY_PATH=$HOME/aws-secret-key.txt" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
attests: []

Check failure on line 56 in .github/workflows/build-docker.yml

View workflow run for this annotation

GitHub Actions / Build and push Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/build-docker.yml (Line: 56, Col: 20): A sequence was not expected
file: docker/node.dockerfile
secret-files: |
aws-key-id=${{ env.AWS_ACCESS_KEY_ID_PATH }}
aws-secret-key=${{ env.AWS_SECRET_ACCESS_KEY_PATH }}
build-args: |
SCCACHE_BUCKET=torus-substrate-cache
SCCACHE_ENDPOINT=${{ secrets.SCCACHE_ENDPOINT }}
SCCACHE_REGION=auto
SCCACHE_ARCH=${{ matrix.arch.sccache_arch }}
tags: |
ghcr.io/renlabs-dev/torus-substrate:${{ steps.commit.outputs.short }}
ghcr.io/renlabs-dev/torus-substrate:${{ env.SANITIZED_REF }}
platforms: ${{ matrix.arch.name }}