Travis CI: build & publish Docker image 💚
This commit is contained in:
parent
2a01eda564
commit
4aa500b867
3 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
/build
|
||||
|
||||
/Dockerfile
|
||||
/push-docker-image.sh
|
||||
|
|
|
@ -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
6
push-docker-image.sh
Normal 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
|
Loading…
Reference in a new issue