dnsupdater/build.sh

8 lines
245 B
Bash
Raw Normal View History

#!/bin/sh
docker build --rm -t llehouerou/dnsupdater:latest .
rc=$?
if [[ ${rc} == 0 ]]; then
docker push llehouerou/dnsupdater
2019-07-09 11:13:44 +00:00
ssh srv03 'docker pull llehouerou/dnsupdater; cd docker/conf/goservices; docker-compose up -d --remove-orphans'
fi