Created
February 22, 2024 10:04
-
-
Save yasudacloud/cdaf0505c0326eed43e580a65f52dfca to your computer and use it in GitHub Desktop.
buildspec.yml
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: 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