2020-04-03 14:15:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-04-03 19:53:47 +00:00
|
|
|
# Install AWS CLI
|
|
|
|
pip install --user awscli;
|
|
|
|
export PATH=$PATH:$HOME/.local/bin;
|
|
|
|
|
2020-04-03 14:15:08 +00:00
|
|
|
# Build and push Docker image to Docker Hub
|
2020-04-03 19:53:47 +00:00
|
|
|
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin;
|
2020-04-14 20:43:35 +00:00
|
|
|
docker build \
|
2020-04-14 21:21:51 +00:00
|
|
|
--build-arg build_config="$DEPLOY_BUILD_CONFIG" \
|
2020-04-14 20:43:35 +00:00
|
|
|
--no-cache -t sartography/cr-connect-bpmn:latest . \
|
|
|
|
|| exit 1;
|
2020-04-03 14:15:08 +00:00
|
|
|
docker push sartography/cr-connect-bpmn: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/bpmn' || exit 1;
|