Skip to content

Commit a4cf937

Browse files
committed
chore: Adds firebase project to website
1 parent bfca5fc commit a4cf937

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

task-5/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Last week the management team was not pleased when they checked the company website and realized that it is a version from 2 months ago. The developer responsible for the website said that locally and in the repository there is up to date version of the website. After short investigation it turned out that they forgot to deploy the website to the server. Your task now is to add website deployment to the pipeline. Whenever there are changes to website directory and the commit is on the main branch the website should be deployed to the server.
44

5+
The website is configured to be deployed to firebase, but you can choose any other hosting provider.
6+
57
## Definition of done
68

79
- [ ] Whenever commit is committed to main branch, and there are changes to website directory, the website is deployed to the server.

website/.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "github-actions-c696f"
4+
}
5+
}

website/.firebaserc.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "project-id"
4+
}
5+
}

website/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.firebaserc
2+
13
# Logs
24
logs
35
*.log

website/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Website
2+
3+
## How to deploy the website to firebase
4+
5+
1. Copy `.firebaserc.example` to `.firebaserc`
6+
1. Replace `project-id` with your firebase project id
7+
2. Run `firebase deploy`
8+
9+
## How to create a project in firebase
10+
11+
1. Go to https://console.firebase.google.com/
12+
2. Click on `Add project`
13+
3. Follow the steps to create a project
14+
15+
## How to find project id
16+
17+
- It is below the project name in the firebase console
18+
- When you select project the id is in the url - https://console.firebase.google.com/project/ID/overview

0 commit comments

Comments
 (0)