Skip to content

Commit

Permalink
fix: docker login
Browse files Browse the repository at this point in the history
  • Loading branch information
GIVEN53 committed Sep 29, 2023
1 parent c01c49b commit b89c1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-fluentbit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
IMAGE_TAG: latest

jobs:
login-to-aws-ecr:
deploy-fluentbit:
runs-on: ubuntu-latest
env:
working-directory: ./fluentbit
Expand Down Expand Up @@ -59,6 +59,7 @@ jobs:
host: ${{ secrets.DEV_SERVER_HOST }}
username: ${{ secrets.DEV_SERVER_USER }}
script: |
docker login -u AWS -p $(aws ecr get-login-password --region ${{ env.AWS_REGION }}) ${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com
docker pull ${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.DEV_ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
docker stop fluentbit-dev && docker rm fluentbit-dev
docker run -d --name fluentbit-dev -p 8888:8888 -p 8889:8889 |
Expand Down
2 changes: 1 addition & 1 deletion fluentbit/fluent-bit.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
Name kinesis_streams
Match server.log
region ap-northeast-2
stream kn-server-log-${env}
stream kn-server-log-${env}

0 comments on commit b89c1c7

Please sign in to comment.