8 lines
245 B
Bash
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 |