Skip to content

Commit

Permalink
Merge pull request #184 from na2na-p/develop
Browse files Browse the repository at this point in the history
1.3.0.10
  • Loading branch information
2na2-p[bot] authored Dec 20, 2022
2 parents 553be2b + 8fbd90c commit 395f50c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/push-ecr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Build and Push to ECR

on:
push:
branches:
- main
workflow_dispatch:
on: workflow_dispatch

jobs:
build-and-push:
Expand Down
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ phases:
- aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin $ECR_REGISTRY
- docker tag $ECR_REPOSITORY:latest $ECR_REGISTRY:latest
- docker push $ECR_REGISTRY:latest
- printf '[{"name":"2na2-discord","imageUri":"%s"}]' $ECR_REGISTRY:latest > imagedefinitions.json
- printf '[{"name":"2na2-discord","imageUri":"%s", "secrets":[{"name":"TOKEN","valueFrom":"$TOKEN"},{"name":"OPENAI_API_KEY","valueForm":"$OPENAI_API_KEY"},{"name":"DEEPL_API_KEY","valueForm":"$DEEPL_API_KEY"},{"name":"BOT_MASTER_ID","valueForm":"$BOT_MASTER_ID"},{"name":"SET_COMMANDS_TARGET_SERVERS","valueForm":"$SET_COMMANDS_TARGET_SERVERS"},{"name":"PREFIX","valueForm":"$PREFIX"}]' $ECR_REGISTRY:latest > imagedefinitions.json

artifacts:
files: imagedefinitions.json

0 comments on commit 395f50c

Please sign in to comment.