generated from phundrak/rust-poem-openapi-template
feat: OAuth implementation with Discord
This commit separates the core features of GéJDR from the backend as these will also be used by the bot in the future. This commit also updates the dependencies of the project. It also removes the dependency lettre as well as the mailpit docker service for developers as it appears clearer this project won’t send emails anytime soon. The publication of a docker image is also postponed until later.
This commit is contained in:
@@ -43,8 +43,6 @@ jobs:
|
||||
run: nix develop --command -- just lint
|
||||
- name: Audit
|
||||
run: nix develop --command -- just audit
|
||||
- name: Minimum supported Rust version check
|
||||
run: nix develop --command -- just msrv
|
||||
- name: Tests
|
||||
run: nix develop --command -- just test
|
||||
- name: Coverage
|
||||
@@ -60,7 +58,7 @@ jobs:
|
||||
hide_complexity: false
|
||||
indicators: true
|
||||
output: both
|
||||
thresholds: '60 80'
|
||||
thresholds: '40 80'
|
||||
- name: Add Coverage PR Comment
|
||||
uses: mshick/add-pr-comment@v2
|
||||
if: gitea.event_name == 'pull_request'
|
||||
|
||||
@@ -9,6 +9,7 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'develop'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
@@ -20,14 +21,26 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
||||
registry: ${{ var.REGISTRY }}
|
||||
- uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- name: Build Docker image
|
||||
run: nix develop --command -- just docker-build
|
||||
run: nix develop --command -- just backend build-docker
|
||||
- name: Load Docker image
|
||||
run: docker load < result
|
||||
- name: Docker Metadata action
|
||||
uses: docker/metadata-action@v5.5.1
|
||||
uses: docker/metadata-action@v5.6.1
|
||||
with:
|
||||
image: tal-backend:latest
|
||||
image: gejdr-backend:latest
|
||||
tags:
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=sha
|
||||
labels: |
|
||||
org.opencontainers.image.title=Backend GéJDR
|
||||
org.opencontainers.image.description=Backend for GéJDR
|
||||
org.opencontainers.image.vendor=Lucien Cartier-Tilet <lucien@phundrak.com>
|
||||
Reference in New Issue
Block a user