dnsupdater/build.sh
2019-07-09 15:13:44 +04:00

8 lines
245 B
Bash

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