mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 13:27:22 +00:00
Merge branch 'main' of https://github.com/Infisical/infisical into main
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
name: Push to Docker Hub
|
||||||
|
|
||||||
|
on: [workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push backend
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
context: /backend
|
||||||
|
tags: infisical/backend:latest
|
||||||
|
-
|
||||||
|
name: Build and push frontend
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
context: /frontend
|
||||||
|
tags: infisical/frontend:latest
|
||||||
@@ -13,7 +13,7 @@ router.post(
|
|||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
'/login1',
|
'/login1',
|
||||||
// loginLimiter,
|
loginLimiter,
|
||||||
body('email').exists().trim().notEmpty(),
|
body('email').exists().trim().notEmpty(),
|
||||||
body('clientPublicKey').exists().trim().notEmpty(),
|
body('clientPublicKey').exists().trim().notEmpty(),
|
||||||
validateRequest,
|
validateRequest,
|
||||||
@@ -22,7 +22,7 @@ router.post(
|
|||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
'/login2',
|
'/login2',
|
||||||
// loginLimiter,
|
loginLimiter,
|
||||||
body('email').exists().trim().notEmpty(),
|
body('email').exists().trim().notEmpty(),
|
||||||
body('clientProof').exists().trim().notEmpty(),
|
body('clientProof').exists().trim().notEmpty(),
|
||||||
validateRequest,
|
validateRequest,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { signupLimiter } from '../helpers/rateLimiter';
|
|||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
'/email/signup',
|
'/email/signup',
|
||||||
// signupLimiter,
|
signupLimiter,
|
||||||
body('email').exists().trim().notEmpty().isEmail(),
|
body('email').exists().trim().notEmpty().isEmail(),
|
||||||
validateRequest,
|
validateRequest,
|
||||||
signupController.beginEmailSignup
|
signupController.beginEmailSignup
|
||||||
@@ -15,7 +15,7 @@ router.post(
|
|||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
'/email/verify',
|
'/email/verify',
|
||||||
// signupLimiter,
|
signupLimiter,
|
||||||
body('email').exists().trim().notEmpty().isEmail(),
|
body('email').exists().trim().notEmpty().isEmail(),
|
||||||
body('code').exists().trim().notEmpty(),
|
body('code').exists().trim().notEmpty(),
|
||||||
validateRequest,
|
validateRequest,
|
||||||
@@ -24,7 +24,7 @@ router.post(
|
|||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
'/complete-account/signup',
|
'/complete-account/signup',
|
||||||
// signupLimiter,
|
signupLimiter,
|
||||||
requireSignupAuth,
|
requireSignupAuth,
|
||||||
body('email').exists().trim().notEmpty().isEmail(),
|
body('email').exists().trim().notEmpty().isEmail(),
|
||||||
body('firstName').exists().trim().notEmpty(),
|
body('firstName').exists().trim().notEmpty(),
|
||||||
@@ -42,7 +42,7 @@ router.post(
|
|||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
'/complete-account/invite',
|
'/complete-account/invite',
|
||||||
// signupLimiter,
|
signupLimiter,
|
||||||
requireSignupAuth,
|
requireSignupAuth,
|
||||||
body('email').exists().trim().notEmpty().isEmail(),
|
body('email').exists().trim().notEmpty().isEmail(),
|
||||||
body('firstName').exists().trim().notEmpty(),
|
body('firstName').exists().trim().notEmpty(),
|
||||||
|
|||||||
Reference in New Issue
Block a user