From 3cf63f4ed94d5634748f7694977253e580c65d1b Mon Sep 17 00:00:00 2001 From: Jaroslav Kirichok Date: Tue, 19 Nov 2024 19:44:36 +0200 Subject: [PATCH] ci: add the `GitHub Actions` configuration files --- .github/ISSUE_TEMPLATE/features.md | 20 ++++++++++++++++++++ .github/SECURITY.md | 8 ++++++++ .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/features.md create mode 100644 .github/SECURITY.md create mode 100644 .github/workflows/ci.yml diff --git a/.github/ISSUE_TEMPLATE/features.md b/.github/ISSUE_TEMPLATE/features.md new file mode 100644 index 0000000..ce79617 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/features.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: feature +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/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..bab964b --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,8 @@ +# Security Policy + +## Supported Versions + +| Library | Version | Supported | +|----------------------------------------------------------|---------|--------------------| +| [Rust](https://github.com/rust-lang/rust) | 1.81.0 | :heavy_check_mark: | +| [Shuttle Runtime](https://github.com/shuttle-hq/shuttle) | 0.48.0 | :heavy_check_mark: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0507b22 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +--- +name: Deploy Rust app to Shuttle + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + environment: shuttle-rs + steps: + - uses: shuttle-hq/deploy-action@main + with: + cargo-shuttle-version: '0.48.2' + deploy-key: ${{ secrets.SHUTTLE_API_KEY }} + secrets: | + DATADOG_API_KEY = '${{ secrets.DATADOG_API_KEY }}' + DATADOG_LOG_LEVEL = '${{ secrets.DATADOG_LOG_LEVEL }}' + DATADOG_TAGS = '${{ secrets.DATADOG_TAGS }}' + + SMTP_ADDR = '${{ secrets.SMTP_ADDR }}' + SMTP_AUTH = '${{ secrets.SMTP_AUTH }}'