forked from kenken64/bitcoin-order-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (55 loc) · 1.67 KB
/
.travis.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: node_js
node_js:
- node
dist: bionic
sudo: required
services:
- docker
before_install:
- docker build -t kenken64/bitcoin-app .
notifications:
email:
recipients:
- bunnyppl@gmail.com
on_success: always
on_failure: always
branches:
only:
- master
before_script:
- npm install -g @angular/cli
script:
- ng lint
- npm audit fix
- npm update
- npm i @angular-devkit/build-angular@0.803.24
- ng build --prod --base-href https://kenken64.github.io/bitcoin-order-app/
after_success:
- docker build -t kenken64/bitcoin-app .
# Log in to the docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
- docker push kenken64/bitcoin-app
- pip install --user awscli # install aws cli w/o sudo
- export PATH=$PATH:$HOME/.local/bin # put aws in the path
- eval $(aws ecr get-login --no-include-email --region ap-southeast-2) #needs AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY envvars
- docker tag kenken64/bitcoin-app 869041221584.dkr.ecr.ap-southeast-2.amazonaws.com/bitcoinapp
- docker push 869041221584.dkr.ecr.ap-southeast-2.amazonaws.com/bitcoinapp
- git push https://github.com/kenken64/bitcoin-order-app.git :feature
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: dist/bitcoin
edge: true
on:
branch: master
#- provider: elasticbeanstalk
# region: "ap-southeast-2"
# app: "bitcoin-app-1"
# env: "BitcoinApp1-env"
# bucket_name: "elasticbeanstalk-ap-southeast-2-869041221584"
# bucket_path: "bitcoin-app-1"
# on:
# branch: master
# access_key_id: $AWS_ACCESS_KEY_ID
# secret_access_key: $AWS_SECRET_ACCESS_KEY