2020-04-03 14:26:12 +00:00
|
|
|
language: bash
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo pip install --upgrade pip
|
|
|
|
- pip install --user awscli
|
|
|
|
- export PATH=$PATH:$HOME/.local/bin
|
2020-04-03 15:12:36 +00:00
|
|
|
- echo $DOCKER_TOKEN | docker login -u "$DOCKER_USERNAME" --password-stdin
|
2020-04-03 14:26:12 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|