cr-connect-workflow/deploy.sh

10 lines
460 B
Bash
Raw Normal View History

#!/bin/bash
# Build and push Docker image to Docker Hub
2020-04-03 15:29:33 +00:00
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build --no-cache -t sartography/cr-connect-backend:latest . || exit 1;
docker push sartography/cr-connect-backend:latest || exit 1;
# Notify UVA DCOS that Docker image has been updated
aws sqs send-message --queue-url 'https://queue.amazonaws.com/474683445819/dcos-refresh' --message-body 'crconnect/backend' || exit 1;