diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..0a0af7d --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: bensuperpc diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**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/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000..48d5f81 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,10 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..22197e3 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..96ab62f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: infrastructure + +on: + push: + branches: + - "main" + - "master" + - "dev" + paths-ignore: + - "**/README.md" + pull_request: + branches: + - "*" + schedule: + - cron: "0 9 * * 2" # every tuesday at 9:00 https://crontab.guru/#0_7_*_*_1 + workflow_dispatch: + +jobs: + image: + name: infrastructure + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: "Checkout Code" + uses: actions/checkout@v3 + with: + submodules: "recursive" + fetch-depth: 0 + - name: "Update server" + run: make update + - name: "Build server" + run: make build \ No newline at end of file diff --git a/.github/workflows/submodule-update.yml b/.github/workflows/submodule-update.yml new file mode 100644 index 0000000..72853cf --- /dev/null +++ b/.github/workflows/submodule-update.yml @@ -0,0 +1,31 @@ +name: submodule-update + +on: + schedule: + - cron: '0 */8 * * *' + workflow_dispatch: + +jobs: + image: + name: submodule-update + runs-on: ubuntu-latest + steps: + - name: "Checkout Code" + uses: actions/checkout@v3 + with: + token: ${{ secrets.CI_TOKEN }} + repository: ${{ github.repository }} + submodules: 'recursive' + fetch-depth: 1 + # Update references + - name: Git Sumbodule Update + run: | + git pull --recurse-submodules + git submodule update --remote --recursive + # Commit and push + - name: Commit update + run: | + git config --global user.name 'Bensuperpc' + git config --global user.email 'bensuperpc@gmail.com' + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} + git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" diff --git a/docker-compose.yml b/docker-compose.yml index f3aac10..a6e2677 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -77,8 +77,6 @@ services: - blog-network security_opt: - no-new-privileges:true -# - seccomp:unconfined -# - apparmor:unconfined # cap_drop: # - ALL # cap_add: @@ -89,8 +87,6 @@ services: container_name: uptime-kuma profiles: - uptime-kuma - depends_on: - - caddy volumes: - uptimekuma_data:/app/data restart: always