Moves AWS CLI install step into deploy script

This commit is contained in:
Aaron Louie 2020-04-03 15:53:47 -04:00
parent fed8b1e057
commit 2990d16ab6
2 changed files with 5 additions and 5 deletions

View File

@ -22,10 +22,6 @@ addons:
script:
- npm run ci
after_success:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
deploy:
provider: script
script: bash ./deploy.sh

View File

@ -1,7 +1,11 @@
#!/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
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker build --no-cache -t sartography/cr-connect-bpmn:latest . || exit 1;
docker push sartography/cr-connect-bpmn:latest || exit 1;