Complete user authentication system including signup, signin, password management, and session handling.
Common Requirements:
- User registration and login
- Password reset/recovery
| node('yona'){ | |
| stage('Build'){ | |
| ... | |
| } | |
| } | |
| stage('Decide tag on Docker Hub'){ | |
| env.TAG_ON_DOCKER_HUB = input message: 'User input required', | |
| parameters: [choice(name: 'Tag on Docker Hub', choices: 'no\nyes', description: 'Choose "yes" if you want to deploy this build')] | |
| } | |
| if (env.TAG_ON_DOCKER_HUB == 'yes'){ |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const AWS = require('aws-sdk'); | |
| const { BUCKET_NAME, AWS_ACCESS_ID, AWS_SECRET_KEY } = process.env; | |
| // helpers | |
| function uploadToS3(file, name, type) { |
| require('dotenv').config(); | |
| //require("lambda") | |
| var http = require("request"), | |
| _ = require("lodash"), | |
| async = require("async"), | |
| moment = require('moment'), | |
| elasticsearch = require('elasticsearch'), | |
| elastic = new elasticsearch.Client({ | |
| host: process.env.ES | |
| }) |
| InvalidateCacheProject: | |
| Type: AWS::CodeBuild::Project | |
| Properties: | |
| Artifacts: | |
| Type: CODEPIPELINE | |
| Environment: | |
| ComputeType: BUILD_GENERAL1_SMALL | |
| Image: aws/codebuild/standard:2.0 | |
| Type: LINUX_CONTAINER | |
| Name: !Sub ${AWS::StackName}-invalidate-cache |