Skip to content
Open
Show file tree
Hide file tree
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
34 changes: 22 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@ services:
- docker

before_install:
- docker build -t singhabhinav/react-project -f Dockerfile_dev .
- docker build -t lipidocker1/react-project:prod -f Dockerfile_dev .

script:
- docker run -e CI=true singhabhinav/react-project npm run test
- docker run -e CI=true lipidocker1/react-project:prod npm run test

deploy:
provider: elasticbeanstalk
region: us-west-1 # Specify your region
app: "docker-react-project" # Copy it from Elastic Beanstalk dashboard
env: "DockerReactProject-env-2" # Copy it from Elastic Beanstalk dashboard
bucket_name: "elasticbeanstalk-us-west-1-034275272121"
bucket_path: "docker"
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
on:
deploy:
- provider: elasticbeanstalk
region: us-west-1 # Specify your region
app: "react-project-dockerstaging" # Copy it from Elastic Beanstalk dashboard
env: "ReactProjectDockersraging-env" # Copy it from Elastic Beanstalk dashboard
bucket_name: "elasticbeanstalk-us-west-1-391998522123"
bucket_path: "docker"
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
on:
branch: staging
- provider: elasticbeanstalk
region: us-west-1 # Specify your region
app: "react-project-docker" # Copy it from Elastic Beanstalk dashboard
env: "ReactProjectDocker-env" # Copy it from Elastic Beanstalk dashboard
bucket_name: "elasticbeanstalk-us-west-1-391998522123"
bucket_path: "docker"
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
on:
branch: master
7 changes: 5 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ function App() {
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload by Abhinav.
Edit <code>src/App.js</code> and save to reload by Subhashree Web Site
</p>
<p>
Modified one more line in feature brach
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
Learn React
</a>
</header>
</div>
Expand Down