mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-17 13:54:25 +01:00
Add script and instruction to build all the docker images by yourself
This commit is contained in:
19
contrib/DockerFileBuildHelper/Extensions.cs
Normal file
19
contrib/DockerFileBuildHelper/Extensions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using YamlDotNet.RepresentationModel;
|
||||
|
||||
namespace DockerFileBuildHelper
|
||||
{
|
||||
public static class Extensions
|
||||
{
|
||||
public static YamlNode TryGet(this YamlNode node, string key)
|
||||
{
|
||||
try
|
||||
{
|
||||
return node[key];
|
||||
}
|
||||
catch (KeyNotFoundException) { return null; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user