Adds Travis CI configuration to build Docker image. Sends message to DCOS when Docker Hub image is updated

This commit is contained in:
Aaron Louie 2020-04-03 10:26:12 -04:00
parent 4a853ab543
commit da60bff465
2 changed files with 39 additions and 18 deletions

34
.gitignore vendored
View File

@ -1,8 +1,8 @@
# Created by https://www.gitignore.io/api/intellij # Created by https://www.gitignore.io/api/pycharm+all
# Edit at https://www.gitignore.io/?templates=intellij # Edit at https://www.gitignore.io/?templates=pycharm+all
### Intellij ### ### PyCharm+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
@ -72,22 +72,20 @@ fabric.properties
# Android studio 3.1+ serialized cache file # Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser .idea/caches/build_file_checksums.ser
### Intellij Patch ### ### PyCharm+all Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 # Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
# *.iml .idea/
# modules.xml
# .idea/misc.xml # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
# *.ipr
*.iml
modules.xml
.idea/misc.xml
*.ipr
# Sonarlint plugin # Sonarlint plugin
.idea/**/sonarlint/ .idea/sonarlint
# SonarQube Plugin # End of https://www.gitignore.io/api/pycharm+all
.idea/**/sonarIssues.xml
# Markdown Navigator plugin
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator/
# End of https://www.gitignore.io/api/intellij

23
.travis.yml Normal file
View File

@ -0,0 +1,23 @@
language: bash
services:
- docker
before_install:
- sudo pip install --upgrade pip
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- echo $DOCKER_PASSWORD | docker login -u "$DOCKER_USERNAME" --password-stdin
install:
docker build --no-cache -t sartography/cr-connect-db:latest . || exit 1;
docker push sartography/cr-connect-db:latest || exit 1;
aws sqs send-message --queue-url 'https://queue.amazonaws.com/474683445819/dcos-refresh' --message-body 'crconnect/db' || exit 1;
notifications:
email:
on_success: change
on_failure: always
recipients:
- dan@sartography.com