Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Created February 22, 2024 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasudacloud/cdaf0505c0326eed43e580a65f52dfca to your computer and use it in GitHub Desktop.
Save yasudacloud/cdaf0505c0326eed43e580a65f52dfca to your computer and use it in GitHub Desktop.
buildspec.yml
version: 0.2
env:
secrets-manager:
SLACK_TOKEN: ${SECRET_MANAGER_NAME}:SLACK_TOKEN
phases:
pre_build:
commands:
- aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin AWSアカウントID.dkr.ecr.ap-northeast-1.amazonaws.com
build:
commands:
- docker build -t slack_container .
- docker run --rm -e SLACK_TOKEN=$SLACK_TOKEN slack_container slack deploy --token $SLACK_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment