Skip to content

Instantly share code, notes, and snippets.

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) {
@jvvlimme
jvvlimme / fetcher.js
Created December 14, 2018 13:29
Jira Fetcher
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
})
@rowanu
rowanu / codebuild.yaml
Created January 13, 2020 23:42
Invalidate CloudFront from CodePipeline
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
@Neophen
Neophen / Essential Full-Stack Elixir - Phoenix Boilerplate Guide.md
Created November 6, 2024 05:41
Essential Full-Stack Elixir/Phoenix Boilerplate Guide

Essential Full-Stack Elixir/Phoenix Boilerplate Guide

Core Features

1. Authentication & Authorization 🔐

Complete user authentication system including signup, signin, password management, and session handling.

Common Requirements:

  • User registration and login
  • Password reset/recovery