1
0

rewrite build.sh to set default value to BTCPAYGEN_DOCKER_IMAGE

This commit is contained in:
nicolas.dorier
2018-09-30 20:28:23 +09:00
parent fcddb4b33f
commit fc38f746ee
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
# This script will run docker-compose-generator in a container to generate the yml files
If (-not ($BTCPAYGEN_DOCKER_IMAGE)) { $BTCPAYGEN_DOCKER_IMAGE = "btcpayserver/docker-compose-generator" }
If($BTCPAYGEN_DOCKER_IMAGE -eq "btcpayserver/docker-compose-generator:local"){
If ($BTCPAYGEN_DOCKER_IMAGE -eq "btcpayserver/docker-compose-generator:local"){
docker build docker-compose-generator --tag $BTCPAYGEN_DOCKER_IMAGE
} Else {
docker pull $BTCPAYGEN_DOCKER_IMAGE