Merge branch 'master' of github.com:sartography/cr-connect-workflow
This commit is contained in:
commit
fae07f289f
|
@ -27,13 +27,10 @@ script:
|
||||||
- coverage xml -i
|
- coverage xml -i
|
||||||
- sonar-scanner
|
- sonar-scanner
|
||||||
|
|
||||||
after_success:
|
|
||||||
- pip install --user awscli
|
|
||||||
- export PATH=$PATH:$HOME/.local/bin
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script: bash deploy.sh
|
script: bash deploy.sh
|
||||||
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install AWS CLI
|
||||||
|
pip install --user awscli;
|
||||||
|
export PATH=$PATH:$HOME/.local/bin;
|
||||||
|
|
||||||
# Build and push Docker image to Docker Hub
|
# Build and push Docker image to Docker Hub
|
||||||
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
docker build --no-cache -t sartography/cr-connect-backend:latest . || exit 1;
|
docker build --no-cache -t sartography/cr-connect-backend:latest . || exit 1;
|
||||||
|
|
Loading…
Reference in New Issue