From 196b31300ad0f005b83f6a860093dc828bff41fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Mu=C3=B1oz?= Date: Wed, 24 Jan 2024 21:33:25 -0500 Subject: [PATCH] add gitea actions --- .gitea/ISSUE_TEMPLATE/bug_report.md | 40 ++++++++++++ .gitea/ISSUE_TEMPLATE/config.yml | 8 +++ .gitea/ISSUE_TEMPLATE/maintainance-event.md | 17 +++++ .gitea/workflows/graphs.yml | 39 +++++++++++ .gitea/workflows/response-time.yml | 40 ++++++++++++ .gitea/workflows/setup.yml | 72 +++++++++++++++++++++ .gitea/workflows/site.yml | 48 ++++++++++++++ .gitea/workflows/summary.yml | 39 +++++++++++ .gitea/workflows/update-template.yml | 39 +++++++++++ .gitea/workflows/updates.yml | 37 +++++++++++ .gitea/workflows/uptime.yml | 40 ++++++++++++ .upptimerc.yml | 2 +- 12 files changed, 420 insertions(+), 1 deletion(-) create mode 100644 .gitea/ISSUE_TEMPLATE/bug_report.md create mode 100644 .gitea/ISSUE_TEMPLATE/config.yml create mode 100644 .gitea/ISSUE_TEMPLATE/maintainance-event.md create mode 100644 .gitea/workflows/graphs.yml create mode 100644 .gitea/workflows/response-time.yml create mode 100644 .gitea/workflows/setup.yml create mode 100644 .gitea/workflows/site.yml create mode 100644 .gitea/workflows/summary.yml create mode 100644 .gitea/workflows/update-template.yml create mode 100644 .gitea/workflows/updates.yml create mode 100644 .gitea/workflows/uptime.yml diff --git a/.gitea/ISSUE_TEMPLATE/bug_report.md b/.gitea/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..e705887d --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,40 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: 'bug' +assignees: 'AnandChowdhary' + +--- + + + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.gitea/ISSUE_TEMPLATE/config.yml b/.gitea/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..5c1e2009 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: true +contact_links: + - name: Feature requests and ideas + url: https://github.com/upptime/upptime/discussions/new?category=ideas + about: Suggest an idea for this project + - name: Questions + url: https://github.com/upptime/upptime/discussions/new?category=q-a + about: Please ask and answer questions here diff --git a/.gitea/ISSUE_TEMPLATE/maintainance-event.md b/.gitea/ISSUE_TEMPLATE/maintainance-event.md new file mode 100644 index 00000000..7abcd253 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/maintainance-event.md @@ -0,0 +1,17 @@ +--- +name: Maintenance Event +about: Schedule a work window +title: "[Scheduled Maintenance] Site down for Maintenance" +labels: maintenance +assignees: '' + +--- + + + +**Additional context** +Who/what/when/where/why is this maintenance happening diff --git a/.gitea/workflows/graphs.yml b/.gitea/workflows/graphs.yml new file mode 100644 index 00000000..900f0796 --- /dev/null +++ b/.gitea/workflows/graphs.yml @@ -0,0 +1,39 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Graphs CI +on: + schedule: + - cron: "0 0 * * *" + repository_dispatch: + types: [graphs] + workflow_dispatch: +jobs: + release: + name: Generate graphs + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Generate graphs + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "graphs" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.gitea/workflows/response-time.yml b/.gitea/workflows/response-time.yml new file mode 100644 index 00000000..1379ab2d --- /dev/null +++ b/.gitea/workflows/response-time.yml @@ -0,0 +1,40 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Response Time CI +on: + schedule: + - cron: "0 23 * * *" + repository_dispatch: + types: [response_time] + workflow_dispatch: +jobs: + release: + name: Check status + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Update response time + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "response-time" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} + SECRETS_CONTEXT: ${{ toJson(secrets) }} diff --git a/.gitea/workflows/setup.yml b/.gitea/workflows/setup.yml new file mode 100644 index 00000000..009e4811 --- /dev/null +++ b/.gitea/workflows/setup.yml @@ -0,0 +1,72 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Setup CI +on: + push: + paths: + - ".upptimerc.yml" + repository_dispatch: + types: [setup] + workflow_dispatch: +jobs: + release: + name: Setup Upptime + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Update template + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "update-template" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} + - name: Update response time + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "response-time" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} + SECRETS_CONTEXT: ${{ toJson(secrets) }} + - name: Update summary in README + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "readme" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} + - name: Generate graphs + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: Graphs CI + token: ${{ secrets.GH_PAT || github.token }} + - name: Generate site + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "site" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} + - uses: peaceiris/actions-gh-pages@v3.7.3 + name: GitHub Pages Deploy + with: + github_token: ${{ secrets.GH_PAT || github.token }} + publish_dir: "site/status-page/__sapper__/export/" + force_orphan: "false" + user_name: "Upptime Bot" + user_email: "73812536+upptime-bot@users.noreply.github.com" diff --git a/.gitea/workflows/site.yml b/.gitea/workflows/site.yml new file mode 100644 index 00000000..339da698 --- /dev/null +++ b/.gitea/workflows/site.yml @@ -0,0 +1,48 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Static Site CI +on: + schedule: + - cron: "0 1 * * *" + repository_dispatch: + types: [static_site] + workflow_dispatch: +jobs: + release: + name: Build and deploy site + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[skip ci]')" + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Generate site + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "site" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} + - uses: peaceiris/actions-gh-pages@v3.7.3 + name: GitHub Pages Deploy + with: + github_token: ${{ secrets.GH_PAT || github.token }} + publish_dir: "site/status-page/__sapper__/export/" + force_orphan: "false" + user_name: "Upptime Bot" + user_email: "73812536+upptime-bot@users.noreply.github.com" diff --git a/.gitea/workflows/summary.yml b/.gitea/workflows/summary.yml new file mode 100644 index 00000000..0e49f7f5 --- /dev/null +++ b/.gitea/workflows/summary.yml @@ -0,0 +1,39 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Summary CI +on: + schedule: + - cron: "0 0 * * *" + repository_dispatch: + types: [summary] + workflow_dispatch: +jobs: + release: + name: Generate README + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Update summary in README + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "readme" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.gitea/workflows/update-template.yml b/.gitea/workflows/update-template.yml new file mode 100644 index 00000000..4ac5466e --- /dev/null +++ b/.gitea/workflows/update-template.yml @@ -0,0 +1,39 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Update Template CI +on: + schedule: + - cron: "0 0 * * *" + repository_dispatch: + types: [update_template] + workflow_dispatch: +jobs: + release: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Update template + uses: upptime/uptime-monitor@master + with: + command: "update-template" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.gitea/workflows/updates.yml b/.gitea/workflows/updates.yml new file mode 100644 index 00000000..3383d829 --- /dev/null +++ b/.gitea/workflows/updates.yml @@ -0,0 +1,37 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Updates CI +on: + schedule: + - cron: "0 3 * * *" + repository_dispatch: + types: [updates] + workflow_dispatch: +jobs: + release: + name: Deploy updates + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Update code + uses: upptime/updates@master + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.gitea/workflows/uptime.yml b/.gitea/workflows/uptime.yml new file mode 100644 index 00000000..acd54c1a --- /dev/null +++ b/.gitea/workflows/uptime.yml @@ -0,0 +1,40 @@ +# +# =============================== +# Do not edit this file directly! +# =============================== +# +# Your changes will be overwritten when the Upptime template updates (by default, weekly) +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. +# +# 🔼 Upptime @v1.36.2 +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary + +# * Source: https://github.com/upptime/upptime +# * Docs and more: https://upptime.js.org +# * More by Anand Chowdhary: https://anandchowdhary.com + + +name: Uptime CI +on: + schedule: + - cron: "*/5 * * * *" + repository_dispatch: + types: [uptime] + workflow_dispatch: +jobs: + release: + name: Check status + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.GH_PAT || github.token }} + - name: Check endpoint status + uses: upptime/uptime-monitor@v1.36.2 + with: + command: "update" + env: + GH_PAT: ${{ secrets.GH_PAT || github.token }} + SECRETS_CONTEXT: ${{ toJson(secrets) }} diff --git a/.upptimerc.yml b/.upptimerc.yml index 46c73e7e..d6a86277 100644 --- a/.upptimerc.yml +++ b/.upptimerc.yml @@ -1,7 +1,7 @@ # Change these first owner: TheSL18 # Your GitHub organization or username, where this repository lives repo: upptime # The name of this repository -user-agent: TheSL18 +user-agent: TheSL1 sites: - name: API Listas Negras Globalists