Travis CI: build & publish Docker image 💚

This commit is contained in:
Jannis R 2020-12-02 13:53:50 +01:00
parent 2a01eda564
commit 4aa500b867
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,4 @@
/build
/Dockerfile
/push-docker-image.sh

View file

@ -26,6 +26,13 @@ before_script:
script:
- make -j4
- ctest --verbose
- docker build -t ad-freiburg/pfaedle .
deploy:
on:
branch: master
provider: script
script: bash push-docker-image.sh
notifications:
email:

6
push-docker-image.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/sh
set -ex
set -o pipefail
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push ad-freiburg/pfaedle