Skip to content

Blockcore Reference Nodes (Release 1.1.57) #72

Blockcore Reference Nodes (Release 1.1.57)

Blockcore Reference Nodes (Release 1.1.57) #72

Workflow file for this run

name: Build and Release Docker Image
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: Build and Push
strategy:
matrix:
os: [ ubuntu-latest ]
chain: ['MULTI', 'BTC', 'CRS']
include:
- chain: MULTI
name: "multi"
assembly: "Blockcore.MultiNode.dll"
- chain: BTC
name: "btc"
assembly: "Bitcoin.Node.dll"
- chain: CRS
name: "crs"
assembly: "Cirrus.Node.dll"
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
- name: Log Variables
run: |
echo "action - ${{ github.event.action }}"
echo "url - ${{ github.event.release.url }}"
echo "assets_url - ${{ github.event.release.assets_url }}"
echo "id - ${{ github.event.release.id }}"
echo "tag_name - ${{ github.event.release.tag_name }}"
echo "assets - ${{ github.event.assets }}"
echo "assets[0] - ${{ github.event.assets[0] }}"
- uses: cschleiden/replace-tokens@v1
with:
files: '["Dockerfile"]'
env:
VERSION: ${{ github.event.release.tag_name }}
CHAIN: ${{ matrix.chain }}
NAME: ${{ matrix.name }}
PORTS: ${{ matrix.ports }}
ASSEMBLY: ${{ matrix.assembly }}
- name: Build the Docker container image
run: docker build -f "Dockerfile" -t blockcore/node-${{ matrix.name }}:latest -t blockcore/node-${{ matrix.name }}:${{ github.event.release.tag_name }} --label "unstable=true" "."
- name: Login and Push to Docker Registry
run: |
docker login -u "sondreb" -p "${{secrets.DockerHubSecret}}"
docker push --all-tags blockcore/node-${{ matrix.name }}