This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
usage() { | |
echo "Usage: git release [-r <reviewers>] <version>" >&2 | |
echo " reviewers: List of GitHub user ID (<uid>[,<uid>...])" >&2 | |
echo " version: <newversion>|major|minor|patch|premajor|preminor|prepatch|prerelease" >&2 | |
exit 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Post s3 path to Slack | |
# | |
# Usage: bash circleci2-s3path-slack | |
# | |
# Required environment variables: | |
# | |
# - SLACK_ENDPOINT: Slack endpoint url | |
# - S3PATH: S3 path | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Post docker container tag to Slack | |
# | |
# Usage: bash circleci2-container-tag-slack | |
# | |
# Required environment variables: | |
# | |
# - SLACK_ENDPOINT: Slack endpoint url | |
# - IMAGE: container image name | |
# - TAG: tag of container image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Post coverage rate to Slack | |
# | |
# Usage: bash circleci-coverage-slack.sh [cobertura|jacoco] | |
# | |
# Required environment variables: | |
# | |
# - CIRCLE_TOKEN: project-specific readonly API token (need to access build artifacts for others) | |
# - SLACK_ENDPOINT: Slack endpoint url | |
# - COVERAGE_FILE: coverage xml filename (default: coverage.xml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"Service": "lambda.amazonaws.com" | |
}, | |
"Action": "sts:AssumeRole" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws --region us-east-1 lambda create-function \ | |
--function-name lambda-newrelic-sns \ | |
--runtime nodejs \ | |
--role arn:aws:iam::xxxxxxxx:role/lambda_sns_execution \ | |
--handler index.handler \ | |
--description 'Send message to Amazon SNS' \ | |
--timeout 3 \ | |
--memory-size 128 \ | |
--zip-file fileb://dist/lambda.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp = require 'gulp' | |
coffee = require 'gulp-coffee' | |
zip = require 'gulp-zip' | |
del = require 'del' | |
runSequence = require 'run-sequence' | |
gulp.task 'clean', (cb) -> | |
del 'build', cb | |
gulp.task 'coffee', -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws --region ap-northeast-1 lambda update-function-code --function-name YOUR_FUNCTION_NAME --zip-file fileb://dist/lambda.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Response> | |
<Say language="ja-JP" voice="alice">これはアラート通知テストです。</Say> | |
<Pause length="1"/> | |
<Say language="ja-JP" voice="alice">詳細は XXXX までお問い合わせください。</Say> | |
</Response> |