pr changes

This commit is contained in:
Andrew Camilleri
2018-09-29 18:03:09 +02:00
parent 1e3215144e
commit a756f91c1c
2 changed files with 5 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
# This script will run docker-compose-generator in a container to generate the yml files # 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 (-not ($BTCPAYGEN_DOCKER_IMAGE)) { $BTCPAYGEN_DOCKER_IMAGE = "btcpayserver/docker-compose-generator" }
If($BTCPAYGEN_DOCKER_IMAGE -eq "build"){ If($BTCPAYGEN_DOCKER_IMAGE -eq "btcpayserver/docker-compose-generator:local"){
docker build docker-compose-generator --tag build docker build docker-compose-generator --tag $BTCPAYGEN_DOCKER_IMAGE
} Else { } Else {
docker pull $BTCPAYGEN_DOCKER_IMAGE: docker pull $BTCPAYGEN_DOCKER_IMAGE
} }
docker run -v "$(Get-Location)\Generated:/app/Generated" ` docker run -v "$(Get-Location)\Generated:/app/Generated" `

View File

@@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
if [ "$BTCPAYGEN_DOCKER_IMAGE" == "build" ] if [ "$BTCPAYGEN_DOCKER_IMAGE" == "btcpayserver/docker-compose-generator:local" ]
then then
docker build docker-compose-generator --tag build docker build docker-compose-generator --tag $BTCPAYGEN_DOCKER_IMAGE
else else
docker pull ${BTCPAYGEN_DOCKER_IMAGE:-"btcpayserver/docker-compose-generator"} docker pull ${BTCPAYGEN_DOCKER_IMAGE:-"btcpayserver/docker-compose-generator"}
fi fi