Upgrade to Pro — share decks privately, control downloads, hide ads and more …

時間配分を常に意識するために、通知する仕組みを作った話 / 20220527-peacock-meets-up-01

時間配分を常に意識するために、通知する仕組みを作った話 / 20220527-peacock-meets-up-01

途中の天恵菇があんまり響かなかったです・・・美味しいのに・・・

girigiribauer

May 27, 2022
Tweet

More Decks by girigiribauer

Other Decks in Technology

Transcript

  1. Go bot (2) Slack Slack webhook 2 https://slack.com/intl/ja-jp/help/articles/ 11 5

    0052 65 063 - Slack-%E 3 % 8 1 %A 7 %E 3 % 8 1 %AE-Incoming-Webhook- %E 3 % 81 %AE%E 5 % 8 8 %A 9 %E 7 % 9 4 %A 8 https://api.slack.com/legacy/custom-integrations
  2. Netlify Functions 
 (1) Netlify Web 
 Serverless Function 


    AWS Lambda AWS AWS Lambda AWS 1 2 Netlify Functions
  3. Netlify Functions 
 (2) Go AWS Lambda https://github.com/aws/aws-lambda-go/ Go AWS

    Lambda Netlify https://docs.netlify.com/functions/build-with-go/ URL Slack
  4. (netlify.toml) [build] command = "make build" functions = "functions" publish

    = "site" Netlify Functions 
 (3) (Makefile) .PHONY: build build: mkdir -p functions cd cmd/lambda; go build -o ../../ functions/report ./... `make build` URL Endpoint
  5. GitLab CI 
 (1) GitLab GitHub cURL URL Windows 1

    0 
 `curlimages/curl` Docker CI Docker Linux CI
  6. GitLab CI 
 (2) Netlify Functions URL Git `.gitlab-ci.yml` `$NETLIFY_FUNCTION_URL`

    GitLab Settings > CI/CD > Variables image: curlimages/curl job: script: - curl $NETLIFY_FUNCTION_URL only: - schedules
  7. References https://toggl.com/track/ https://github.com/toggl/toggl_api_docs/blob/master/reports.md https://slack.com/intl/ja-jp/help/articles/ 1 150 05 2 6 50

    6 3 -Slack- %E 3 % 8 1 %A 7 %E 3 % 8 1 %AE-Incoming-Webhook-%E 3 % 8 1 %AE%E 5 % 88 %A 9 %E 7 % 94 %A 8 https://api.slack.com/legacy/custom-integrations https://www.netlify.com/products/functions/ https://github.com/aws/aws-lambda-go/ https://docs.netlify.com/functions/build-with-go/ https://docs.gitlab.com/ee/ci/pipelines/schedules.html