mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Merge branch 'develop' of https://github.com/Kareadita/Kavita into develop
This commit is contained in:
commit
ec0327272f
37
.github/workflows/nightly-docker.yml
vendored
37
.github/workflows/nightly-docker.yml
vendored
@ -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 }}
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user