diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/ISSUE_TEMPLATE/custom.md | 27 | ||||
| -rw-r--r-- | .github/PULL_REQUEST_TEMPLATE.md | 10 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 89 |
3 files changed, 0 insertions, 126 deletions
diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md deleted file mode 100644 index fd66e04..0000000 --- a/.github/ISSUE_TEMPLATE/custom.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Custom issue template -about: General issues, both bugs and features. -title: '' -labels: '' -assignees: mssola ---- - -### Description - -Check out the [contribution guidelines](../CONTRIBUTING.md) file for some considerations before submitting a new issue. - -### Steps to reproduce - -1. First I did this... -2. Then that... -3. And this happened! - -- **Expected behavior**: I expected this to happen! -- **Actual behavior**: But this happened... - -Providing logs would also be useful. - -### Deployment information - -- **Deployment method**: how have you deployed this application? If possible, could you paste your configuration? (don't forget to strip passwords or other sensitive data!) -- Commit SHA. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 7e5026e..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Provide a general description of the changes in your pull request. If this pull request fixes a known issue, please tag it as well (e.g.: `Fixes #1`). - -Before submitting a PR make sure the following things have been done (and denote this by checking the relevant checkboxes): - -- [ ] The commits are consistent with the [contribution guidelines](../CONTRIBUTING.md). -- [ ] `bundle exec rails test`, `bundle exec rails test:system` and `bundle exec rubocop` are passing. -- [ ] You've updated the [changelog](../CHANGELOG.md) (if adding/changing user-visible functionality). -- [ ] You've updated the [readme](../README.md) (if adding/changing user-visible functionality). - -Thanks for contributing to this project! diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 2a00e81..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: CI - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - - name: Run linting - run: | - bundle exec rubocop --parallel - - - name: Run security checks - run: | - bundle exec bundler-audit --update - bundle exec brakeman -q -w2 - - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - - name: Setup database - env: - RAILS_ENV: "test" - run: | - bin/rails db:setup - - - name: Check autoloading (zeitwerk) - env: - RAILS_ENV: "test" - run: | - bin/rails zeitwerk:check - - - name: Run tests - env: - RAILS_ENV: "test" - run: | - bin/rails test - bin/rails test:system - - deploy: - runs-on: ubuntu-latest - needs: [lint, test] - if: github.event_name == 'push' - steps: - - uses: actions/checkout@v4 - - - name: Build production Docker image - run: | - docker build --tag ${{ secrets.REGISTRY_HOST }}/${{ secrets.REGISTRY_USERNAME }}/operum:main . - - - name: Push Docker image - run: | - # The login is done with the default docker password storage, which is - # not the safest around, but it will be removed by a subsequent logout - # later on. - docker login -u "${{ secrets.REGISTRY_USERNAME }}" -p "${{ secrets.REGISTRY_PASSWORD }}" ${{ secrets.REGISTRY_HOST }} - docker push ${{ secrets.REGISTRY_HOST }}/${{ secrets.REGISTRY_USERNAME }}/operum:main - docker logout ${{ secrets.REGISTRY_HOST }} - - # The server provides a small script named `infra-restart` which will do - # the right thing to pull the new image of the desired service and re-run - # it. - - name: executing remote ssh commands using password - uses: appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.REMOTE_HOST }} - username: ${{ secrets.REMOTE_USERNAME }} - password: ${{ secrets.REMOTE_PASSPHRASE }} - key: ${{ secrets.PRIVATE_KEY }} - passphrase: ${{ secrets.REMOTE_PASSPHRASE }} - script: infra-restart operum |
