jenkins-config/update.sh

12 lines
173 B
Bash
Raw Normal View History

2024-09-28 04:03:12 -04:00
#!/bin/bash
git fetch
if [[ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]]
then
echo 'Behind remote config; updating'
git pull
fi
docker-compose up -d --build