diff --git a/.github/workflows/deploy-fluentbit.yml b/.github/workflows/deploy-fluentbit.yml index f9c2514..6d58ecf 100644 --- a/.github/workflows/deploy-fluentbit.yml +++ b/.github/workflows/deploy-fluentbit.yml @@ -13,7 +13,7 @@ env: IMAGE_TAG: latest jobs: - login-to-aws-ecr: + deploy-fluentbit: runs-on: ubuntu-latest env: working-directory: ./fluentbit @@ -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 | diff --git a/fluentbit/fluent-bit.conf b/fluentbit/fluent-bit.conf index 5a09756..d84801b 100644 --- a/fluentbit/fluent-bit.conf +++ b/fluentbit/fluent-bit.conf @@ -36,4 +36,4 @@ Name kinesis_streams Match server.log region ap-northeast-2 - stream kn-server-log-${env} + stream kn-server-log-${env} \ No newline at end of file