Skip to content
Open

Dev #33

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@ version: 2
jobs:
# build job omitted for brevity
build:
working_directory: /tmp/vasko
docker:
- image: circleci/python:2.7-jessie
working_directory: ~/circleci-docs
- image: circleci/python:3.6.2-stretch-browsers
steps:
- checkout
- run:
name: Install awscli
command: sudo pip install awscli
- deploy:
name: Deploy to S3
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
aws s3 sync / s3://postease-sample.com/ --delete
fi
command: aws s3 sync /tmp/vasko s3://postease-sample.com/ --delete

workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master