diff --git a/.forgejo/issue_template/bug_template.yaml b/.forgejo/issue_template/bug_template.yaml new file mode 100644 index 00000000..8f4cad12 --- /dev/null +++ b/.forgejo/issue_template/bug_template.yaml @@ -0,0 +1,77 @@ +name: "Bug or question/support" +about: "For filing a bug or getting support" +body: + - type: textarea + id: problem + attributes: + label: What I'm trying to do and why + validations: + required: true + - type: textarea + id: repro_steps + attributes: + label: Steps to reproduce + description: Include (sanitized) borgmatic configuration files if applicable. + validations: + required: false + - type: textarea + id: actual_behavior + attributes: + label: Actual behavior + description: Include (sanitized) `--verbosity 2` output if applicable. + validations: + required: false + - type: textarea + id: expected_behavior + attributes: + label: Expected behavior + validations: + required: false + - type: textarea + id: notes + attributes: + label: Other notes / implementation ideas + validations: + required: false + - type: input + id: borgmatic_version + attributes: + label: borgmatic version + description: Use `sudo borgmatic --version` or `sudo pip show borgmatic | grep ^Version` + validations: + required: false + - type: input + id: borgmatic_install_method + attributes: + label: borgmatic installation method + description: e.g., pip install, Debian package, container, etc. + validations: + required: false + - type: input + id: borg_version + attributes: + label: Borg version + description: Use `sudo borg --version` + validations: + required: false + - type: input + id: python_version + attributes: + label: Python version + description: Use `python3 --version` + validations: + required: false + - type: input + id: database_version + attributes: + label: Database version (if applicable) + description: Use `psql --version` / `mysql --version` / `mongodump --version` / `sqlite3 --version` + validations: + required: false + - type: input + id: operating_system_version + attributes: + label: Operating system and version + description: On Linux, use `cat /etc/os-release` + validations: + required: false diff --git a/.forgejo/issue_template/config.yaml b/.forgejo/issue_template/config.yaml new file mode 100644 index 00000000..0086358d --- /dev/null +++ b/.forgejo/issue_template/config.yaml @@ -0,0 +1 @@ +blank_issues_enabled: true diff --git a/.forgejo/issue_template/feature_template.yaml b/.forgejo/issue_template/feature_template.yaml new file mode 100644 index 00000000..ac4c38f5 --- /dev/null +++ b/.forgejo/issue_template/feature_template.yaml @@ -0,0 +1,15 @@ +name: "Feature" +about: "For filing a feature request or idea" +body: + - type: textarea + id: request + attributes: + label: What I'd like to do and why + validations: + required: true + - type: textarea + id: notes + attributes: + label: Other notes / implementation ideas + validations: + required: false diff --git a/.forgejo/pull_request_template.md b/.forgejo/pull_request_template.md new file mode 100644 index 00000000..1a5da345 --- /dev/null +++ b/.forgejo/pull_request_template.md @@ -0,0 +1,4 @@ +--- +name: "Pull Request" +about: "Pull Request" +--- diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 00000000..eeca2ae0 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,31 @@ +name: build +run-name: ${{ forgejo.actor }} is building +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: host + + steps: + - uses: actions/checkout@v4 + - run: scripts/run-end-to-end-tests + + docs: + needs: [test] + runs-on: host + if: forgejo.event_name == 'push' + env: + IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs + + steps: + - uses: actions/checkout@v4 + - run: podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org + env: + USERNAME: "${{ secrets.REGISTRY_USERNAME }}" + PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}" + - run: podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" . + - run: podman push "$IMAGE_NAME"