Browse Source

pr changes

feature/auto_ssh
Andrew Camilleri 7 years ago
parent
commit
a756f91c1c
  1. 6
      build.ps1
  2. 4
      build.sh

6
build.ps1

@ -1,10 +1,10 @@
# 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 "build"){
docker build docker-compose-generator --tag build
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:
docker pull $BTCPAYGEN_DOCKER_IMAGE
}
docker run -v "$(Get-Location)\Generated:/app/Generated" `

4
build.sh

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

Loading…
Cancel
Save