Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop

This commit is contained in:
Joseph Milazzo 2021-06-03 08:31:40 -05:00
commit ec0327272f
3 changed files with 22 additions and 19 deletions

View File

@ -1,33 +1,36 @@
name: ci name: CI to Docker Hub
on: on:
push: push:
branches: branches:
- 'master' - 'develop'
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
-
name: Set up QEMU - name: Check Out Repo
uses: docker/setup-qemu-action@v1 uses: actions/checkout@v2
-
name: Set up Docker Buildx - name: Login to Docker Hub
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Build and push - name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: ./
file: ./Dockerfile
push: true push: true
tags: user/app:latest tags: kizaing/kavita:nightly-amd64
-
name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}

View File

@ -7,7 +7,7 @@ namespace API.DTOs
[Required] [Required]
public string Username { get; init; } public string Username { get; init; }
[Required] [Required]
[StringLength(32, MinimumLength = 4)] [StringLength(32, MinimumLength = 6)]
public string Password { get; init; } public string Password { get; init; }
public bool IsAdmin { get; init; } public bool IsAdmin { get; init; }
} }

View File

@ -7,7 +7,7 @@ namespace API.DTOs
[Required] [Required]
public string UserName { get; init; } public string UserName { get; init; }
[Required] [Required]
[StringLength(16, MinimumLength = 4)] [StringLength(32, MinimumLength = 6)]
public string Password { get; init; } public string Password { get; init; }
} }
} }