-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshippable.yml
More file actions
35 lines (28 loc) · 1.21 KB
/
shippable.yml
File metadata and controls
35 lines (28 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
language: python
python:
- 3.4
#specify the build_image
env:
global:
- RDS_HOSTNAME=127.0.0.1 RDS_USERNAME=shippable RDS_PASSWORD="" RDS_DB_NAME=test RDS_PORT=3306
- AWSAccessKeyId=AKIAJRRK7FTR3Y5JHXGQ
- secure: cWljP9P9apnHoeypzcL7DxS0mNq4CMhnv3oKQZJn5/QbbR6f4hxObAkiuwpuR0w2ZforAmR1dg5VMjNRNNfBbPAkGyktl66XnVIGbugphNSjrybIrft0r7aJMElFlVr1VezdmijZPX2db7tlBO17afuxi6Pr+j38m7onVD6E/JjZipiQVjIPnqA4efFsCLMxVwVZT/QSIWsNBFRYtwZ7keLKSv3+sSezmmSDYUNCP1G/G3jhdstNBDGUv7SCTpsXsyaixcyaxueYbJoYyNUo33W534yrJpDMeC89nZHE8sgbItDLoRv9xWYelflVPZiMtqH+vP2uSiTDZItkzXM5tA==
before_install:
- SUDO=$(which sudo) && $SUDO pip install awsebcli
install:
#install the required dependencies
- pip install -r requirements.txt
before_script:
- mkdir -p ~/.aws
- echo '[profile eb-cli]' > ~/.aws/config
- echo "aws_access_key_id = $AWSAccessKeyId" >> ~/.aws/config
- echo "aws_secret_access_key = $AWSSecretKey" >> ~/.aws/config
script:
- mkdir -p .elasticbeanstalk
- cp config.yml .elasticbeanstalk/
# - python manage.py migrate
- python manage.py collectstatic --noinput
-
# - python manage.py createsuperuser --username="fsmimp" --email="admin@example.com" --password="password"
after_success :
- eb init && eb deploy