This file contains hidden or 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
| npm install serverless -g | |
| serverless create -template aws-ruby |
This file contains hidden or 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
| # .circleci/config.yml | |
| version: 2 | |
| jobs: | |
| test: | |
| docker: | |
| - image: circleci/ruby:2.5.3-node-browsers | |
| working_directory: ~/repo | |
| steps: | |
| - checkout |
This file contains hidden or 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
| # circleci-notifications.rb | |
| require 'json' | |
| require 'slack-ruby-client' | |
| Slack.configure do |config| | |
| config.token = ENV['SLACK_TOKEN'] | |
| end | |
| SLACK_USERS = { |
This file contains hidden or 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
| brew install awscli | |
| aws configure | |
| aws --region eu-west-1 ssm put-parameter --name circleci-notifications-slack-token --value top-secret-value --type String |
This file contains hidden or 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
| # circleci-notifications.rb | |
| require 'json' | |
| def handler(event:, context:) | |
| body = JSON.parse(event['body']) | |
| payload = body['payload'] | |
| if payload['failed'] |
This file contains hidden or 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
| source 'https://rubygems.org' | |
| gem 'rspec' | |
| gem 'webmock' | |
| gem 'awesome_print' |
This file contains hidden or 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
| service: lambda-circleci-notifications | |
| provider: | |
| name: aws | |
| runtime: ruby2.5 | |
| stage: dev | |
| region: eu-west-1 | |
| functions: | |
| circleci-notifications: |
This file contains hidden or 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: 2 | |
| jobs: | |
| ... | |
| workflows: | |
| ... | |
| notify: | |
| webhooks: | |
| - url: https://execute-api.eu-west-1.amazonaws.com/prod/notify_author |
This file contains hidden or 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: 2 | |
| jobs: | |
| checkout_code: | |
| docker: | |
| - image: circleci/ruby:2.5.1-node-browsers | |
| - image: circleci/postgres:10.3-alpine | |
| working_directory: ~/circleci-app | |
| steps: | |
| - checkout | |
| - save_cache: |
This file contains hidden or 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
| /* | |
| *= require bootstrap | |
| */ | |
| @font-face { | |
| font-family: 'Glyphicons Halflings'; | |
| src: url('../assets/bootstrap/fonts/glyphicons-halflings-regular.eot'); | |
| src: url('../assets/bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), | |
| url('../assets/bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff'), | |
| url('../assets/bootstrap/fonts/glyphicons-halflings-regular.ttf') format('truetype'), |
NewerOlder