Browse Source

Make sure btcpay-build succeed if no internet connection

tor-relay
nicolas.dorier 5 years ago
parent
commit
56e0b6aac3
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 4
      build.sh

4
build.sh

@ -1,11 +1,15 @@
#!/bin/bash
set -e
: "${BTCPAYGEN_DOCKER_IMAGE:=btcpayserver/docker-compose-generator}"
if [ "$BTCPAYGEN_DOCKER_IMAGE" == "btcpayserver/docker-compose-generator:local" ]
then
docker build docker-compose-generator -f docker-compose-generator/linuxamd64.Dockerfile --tag $BTCPAYGEN_DOCKER_IMAGE
else
set +e
docker pull $BTCPAYGEN_DOCKER_IMAGE
set -e
fi
# This script will run docker-compose-generator in a container to generate the yml files

Loading…
Cancel
Save