Merge branch 'master' of github.com:sartography/cr-connect-workflow

This commit is contained in:
Dan Funk 2020-04-03 16:24:45 -04:00
commit fae07f289f
2 changed files with 5 additions and 4 deletions

View File

@ -27,13 +27,10 @@ script:
- coverage xml -i
- sonar-scanner
after_success:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
deploy:
provider: script
script: bash deploy.sh
skip_cleanup: true
on:
branch: master

View File

@ -1,5 +1,9 @@
#!/bin/bash
# Install AWS CLI
pip install --user awscli;
export PATH=$PATH:$HOME/.local/bin;
# Build and push Docker image to Docker Hub
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build --no-cache -t sartography/cr-connect-backend:latest . || exit 1;