Skip to content

Commit 9044bd3

Browse files
committed
Initial commit
0 parents  commit 9044bd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1300
-0
lines changed

.github/workflows/graphs.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Do not edit this file directly!
2+
# ===============================
3+
#
4+
# Your changes will be overwritten when the template updates (weekly)
5+
# Instead, propose changes to the template: https://github.com/upptime/upptime
6+
# Or, change your configuration in .upptimerc.yml
7+
8+
name: Graphs CI
9+
on:
10+
schedule:
11+
- cron: "0 0 * * *"
12+
repository_dispatch:
13+
types: [graphs]
14+
workflow_dispatch:
15+
jobs:
16+
release:
17+
name: Generate graphs
18+
runs-on: ubuntu-18.04
19+
steps:
20+
- name: Checkout
21+
uses: actions/[email protected]
22+
with:
23+
ref: ${{ github.head_ref }}
24+
token: ${{ secrets.GH_PAT }}
25+
- name: Generate graphs
26+
uses: upptime/uptime-monitor@master
27+
with:
28+
command: "graphs"
29+
env:
30+
GH_PAT: ${{ secrets.GH_PAT }}

.github/workflows/response-time.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Do not edit this file directly!
2+
# ===============================
3+
#
4+
# Your changes will be overwritten when the template updates (weekly)
5+
# Instead, propose changes to the template: https://github.com/upptime/upptime
6+
# Or, change your configuration in .upptimerc.yml
7+
8+
name: Response Time CI
9+
on:
10+
schedule:
11+
- cron: "0 23 * * *"
12+
repository_dispatch:
13+
types: [response_time]
14+
workflow_dispatch:
15+
jobs:
16+
release:
17+
name: Check status
18+
runs-on: ubuntu-18.04
19+
steps:
20+
- name: Checkout
21+
uses: actions/[email protected]
22+
with:
23+
ref: ${{ github.head_ref }}
24+
token: ${{ secrets.GH_PAT }}
25+
- name: Update response time
26+
uses: upptime/uptime-monitor@master
27+
with:
28+
command: "response-time"
29+
env:
30+
GH_PAT: ${{ secrets.GH_PAT }}
31+
SLACK_APP_ACCESS_TOKEN: ${{ secrets.SLACK_APP_ACCESS_TOKEN }}
32+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
33+
CUSTOM_WEBHOOK: ${{ secrets.CUSTOM_WEBHOOK }}
34+
SECRET_SITE: ${{ secrets.SECRET_SITE }}
35+
SECRET_SITE_1: ${{ secrets.SECRET_SITE_1 }}
36+
SECRET_SITE_2: ${{ secrets.SECRET_SITE_2 }}
37+
SECRET_SITE_3: ${{ secrets.SECRET_SITE_3 }}
38+
SECRET_SITE_4: ${{ secrets.SECRET_SITE_4 }}
39+
SECRET_SITE_5: ${{ secrets.SECRET_SITE_5 }}
40+
SECRET_SITE_6: ${{ secrets.SECRET_SITE_6 }}
41+
SECRET_SITE_7: ${{ secrets.SECRET_SITE_7 }}
42+
SECRET_SITE_8: ${{ secrets.SECRET_SITE_8 }}
43+
SECRET_SITE_9: ${{ secrets.SECRET_SITE_9 }}

.github/workflows/setup.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Do not edit this file directly!
2+
# ===============================
3+
#
4+
# Your changes will be overwritten when the template updates (weekly)
5+
# Instead, propose changes to the template: https://github.com/upptime/upptime
6+
# Or, change your configuration in .upptimerc.yml
7+
8+
name: Setup CI
9+
on:
10+
push:
11+
paths:
12+
- ".upptimerc.yml"
13+
repository_dispatch:
14+
types: [setup]
15+
workflow_dispatch:
16+
jobs:
17+
release:
18+
name: Setup Upptime
19+
runs-on: ubuntu-18.04
20+
steps:
21+
- name: Checkout
22+
uses: actions/[email protected]
23+
with:
24+
ref: ${{ github.head_ref }}
25+
token: ${{ secrets.GH_PAT }}
26+
- name: Update response time
27+
uses: upptime/uptime-monitor@master
28+
with:
29+
command: "response-time"
30+
env:
31+
GH_PAT: ${{ secrets.GH_PAT }}
32+
SLACK_APP_ACCESS_TOKEN: ${{ secrets.SLACK_APP_ACCESS_TOKEN }}
33+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
34+
CUSTOM_WEBHOOK: ${{ secrets.CUSTOM_WEBHOOK }}
35+
SECRET_SITE: ${{ secrets.SECRET_SITE }}
36+
SECRET_SITE_1: ${{ secrets.SECRET_SITE_1 }}
37+
SECRET_SITE_2: ${{ secrets.SECRET_SITE_2 }}
38+
SECRET_SITE_3: ${{ secrets.SECRET_SITE_3 }}
39+
SECRET_SITE_4: ${{ secrets.SECRET_SITE_4 }}
40+
SECRET_SITE_5: ${{ secrets.SECRET_SITE_5 }}
41+
SECRET_SITE_6: ${{ secrets.SECRET_SITE_6 }}
42+
SECRET_SITE_7: ${{ secrets.SECRET_SITE_7 }}
43+
SECRET_SITE_8: ${{ secrets.SECRET_SITE_8 }}
44+
SECRET_SITE_9: ${{ secrets.SECRET_SITE_9 }}
45+
- name: Update response time
46+
uses: upptime/uptime-monitor@master
47+
with:
48+
command: "readme"
49+
env:
50+
GH_PAT: ${{ secrets.GH_PAT }}
51+
- name: Generate graphs
52+
uses: benc-uk/workflow-dispatch@v1
53+
with:
54+
workflow: Graphs CI
55+
token: ${{ secrets.GH_PAT }}
56+
- name: Generate site
57+
uses: upptime/uptime-monitor@master
58+
with:
59+
command: "site"
60+
env:
61+
GH_PAT: ${{ secrets.GH_PAT }}
62+
- uses: maxheld83/[email protected]
63+
name: GitHub Pages Deploy
64+
env:
65+
BUILD_DIR: "site/status-page/__sapper__/export/"
66+
GH_PAT: ${{ secrets.GH_PAT }}

.github/workflows/site.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Do not edit this file directly!
2+
# ===============================
3+
#
4+
# Your changes will be overwritten when the template updates (weekly)
5+
# Instead, propose changes to the template: https://github.com/upptime/upptime
6+
# Or, change your configuration in .upptimerc.yml
7+
8+
name: Static Site CI
9+
on:
10+
schedule:
11+
- cron: "0 1 * * *"
12+
workflow_dispatch:
13+
jobs:
14+
release:
15+
name: Build and deploy site
16+
runs-on: ubuntu-18.04
17+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
18+
steps:
19+
- name: Checkout
20+
uses: actions/[email protected]
21+
with:
22+
ref: ${{ github.head_ref }}
23+
token: ${{ secrets.GH_PAT }}
24+
- name: Generate site
25+
uses: upptime/uptime-monitor@master
26+
with:
27+
command: "site"
28+
env:
29+
GH_PAT: ${{ secrets.GH_PAT }}
30+
- uses: maxheld83/[email protected]
31+
name: GitHub Pages Deploy
32+
env:
33+
BUILD_DIR: "site/status-page/__sapper__/export/"
34+
GH_PAT: ${{ secrets.GH_PAT }}

.github/workflows/summary.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Do not edit this file directly!
2+
# ===============================
3+
#
4+
# Your changes will be overwritten when the template updates (weekly)
5+
# Instead, propose changes to the template: https://github.com/upptime/upptime
6+
# Or, change your configuration in .upptimerc.yml
7+
8+
name: Summary CI
9+
on:
10+
schedule:
11+
- cron: "0 0 * * *"
12+
repository_dispatch:
13+
types: [summary]
14+
workflow_dispatch:
15+
jobs:
16+
release:
17+
name: Generate README
18+
runs-on: ubuntu-18.04
19+
steps:
20+
- name: Checkout
21+
uses: actions/[email protected]
22+
with:
23+
ref: ${{ github.head_ref }}
24+
token: ${{ secrets.GH_PAT }}
25+
- name: Update response time
26+
uses: upptime/uptime-monitor@master
27+
with:
28+
command: "readme"
29+
env:
30+
GH_PAT: ${{ secrets.GH_PAT }}
31+
- name: Run readme-repos-list
32+
uses: koj-co/readme-repos-list@master
33+
with:
34+
token: ${{ secrets.GH_PAT }}
35+
query: "topic:upptime"
36+
size: 30
37+
one-per-owner: true

.github/workflows/update-template.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Do not edit this file directly!
2+
# ===============================
3+
#
4+
# Your changes will be overwritten when the template updates (weekly)
5+
# Instead, propose changes to the template: https://github.com/upptime/upptime
6+
# Or, change your configuration in .upptimerc.yml
7+
8+
name: Update Template CI
9+
on:
10+
schedule:
11+
- cron: "0 0 * * *"
12+
repository_dispatch:
13+
types: [update_template]
14+
workflow_dispatch:
15+
jobs:
16+
release:
17+
name: Build
18+
runs-on: ubuntu-18.04
19+
steps:
20+
- name: Checkout
21+
uses: actions/[email protected]
22+
with:
23+
ref: ${{ github.head_ref }}
24+
token: ${{ secrets.GH_PAT }}
25+
- name: Setup Node.js
26+
uses: actions/[email protected]
27+
with:
28+
node-version: 14
29+
- name: Update template
30+
run: npx update-template https://github.com/upptime/upptime
31+
- name: Commit new data
32+
uses: stefanzweifel/[email protected]
33+
with:
34+
commit_message: ":arrow_up: Update @upptime to latest"
35+
commit_user_name: Upptime Bot
36+
commit_user_email: [email protected]
37+
commit_author: Upptime Bot <[email protected]>

.github/workflows/uptime.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Do not edit this file directly!
2+
# ===============================
3+
#
4+
# Your changes will be overwritten when the template updates (weekly)
5+
# Instead, propose changes to the template: https://github.com/upptime/upptime
6+
# Or, change your configuration in .upptimerc.yml
7+
8+
name: Uptime CI
9+
on:
10+
schedule:
11+
- cron: "*/5 * * * *"
12+
workflow_dispatch:
13+
jobs:
14+
release:
15+
name: Check status
16+
runs-on: ubuntu-18.04
17+
steps:
18+
- name: Checkout
19+
uses: actions/[email protected]
20+
with:
21+
ref: ${{ github.head_ref }}
22+
token: ${{ secrets.GH_PAT }}
23+
- name: Update response time
24+
uses: upptime/uptime-monitor@master
25+
with:
26+
command: "update"
27+
env:
28+
GH_PAT: ${{ secrets.GH_PAT }}
29+
SLACK_APP_ACCESS_TOKEN: ${{ secrets.SLACK_APP_ACCESS_TOKEN }}
30+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
31+
CUSTOM_WEBHOOK: ${{ secrets.CUSTOM_WEBHOOK }}
32+
SECRET_SITE: ${{ secrets.SECRET_SITE }}
33+
SECRET_SITE_1: ${{ secrets.SECRET_SITE_1 }}
34+
SECRET_SITE_2: ${{ secrets.SECRET_SITE_2 }}
35+
SECRET_SITE_3: ${{ secrets.SECRET_SITE_3 }}
36+
SECRET_SITE_4: ${{ secrets.SECRET_SITE_4 }}
37+
SECRET_SITE_5: ${{ secrets.SECRET_SITE_5 }}
38+
SECRET_SITE_6: ${{ secrets.SECRET_SITE_6 }}
39+
SECRET_SITE_7: ${{ secrets.SECRET_SITE_7 }}
40+
SECRET_SITE_8: ${{ secrets.SECRET_SITE_8 }}
41+
SECRET_SITE_9: ${{ secrets.SECRET_SITE_9 }}

.templaterc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"files": ["site/**/*", ".github/**/*", "*.ts", "tsconfig.json"],
3+
"removeFiles": ["README.pt-br.md"]
4+
}

.upptimerc.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Change these first
2+
owner: upptime # Your GitHub username
3+
repo: upptime # Your Github repository name
4+
5+
# Add your sites here
6+
sites:
7+
- name: Google
8+
url: https://www.google.com
9+
- name: Wikipedia
10+
url: https://en.wikipedia.org
11+
- name: Hacker News
12+
url: https://news.ycombinator.com
13+
- name: Broken Site
14+
url: https://thissitedoesnotexist.com
15+
- name: Secret Site
16+
url: $SECRET_SITE
17+
18+
status-website:
19+
# Add your custom domain below, or remove the next line if you don't have a domain
20+
cname: demo.upptime.js.org
21+
# Uncomment the following line if you don't have a custom domain and add your repo name
22+
# baseUrl: /upptime
23+
logoUrl: https://raw.githubusercontent.com/upptime/upptime.js.org/master/static/img/icon.svg
24+
name: Upptime
25+
introTitle: "**Upptime** is the open-source uptime monitor and status page, powered entirely by GitHub."
26+
introMessage: This is a sample status page which uses **real-time** data from our [Github repository](https://github.com/koj-co/upptime). No server required — just GitHub Actions, Issues, and Pages. [**Get your own for free**](https://github.com/koj-co/upptime)
27+
navbar:
28+
- title: Status
29+
href: /
30+
- title: GitHub
31+
href: https://github.com/$OWNER/$REPO
32+
33+
# Upptime also supports notifications, assigning issues, and more
34+
# See https://upptime.js.org/docs/configuration

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Anand Chowdhary
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)