Skip to content

unify Dockerfiles and simplify CMD and config.site detection #17

unify Dockerfiles and simplify CMD and config.site detection

unify Dockerfiles and simplify CMD and config.site detection #17

Workflow file for this run

name: Build Bitcoin Knots images
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
name: Build ${{ matrix.knots-versions[1] }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
knots-versions:
- [26, v26.1.knots20240325]
- [25, v25.1.knots20231115]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: 1maa
password: ${{ secrets.DOCKER_HUB_PASS }}
- uses: docker/build-push-action@v5
with:
build-args: |
KNOTS_VERSION=${{ matrix.knots-versions[0] }}
KNOTS_RELEASE=${{ matrix.knots-versions[1] }}
cache-from: type=registry,ref=1maa/bitcoin:${{ matrix.knots-versions[1] }}
cache-to: type=inline
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: 1maa/bitcoin:${{ matrix.knots-versions[1] }}