16 lines
331 B
Bash
16 lines
331 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
TODAY=$(date +%Y-%m-%d)
|
|
|
|
git checkout master
|
|
git fetch github
|
|
git merge github/master -m "Merge github/master"
|
|
|
|
|
|
# Build image
|
|
docker-compose up --build
|
|
docker-compose push
|
|
|
|
docker image tag git.nolog.cz/nolog.cz/nitter:latest git.nolog.cz/nolog.cz/nitter:$TODAY
|
|
docker push git.nolog.cz/nolog.cz/nitter:$TODAY
|