From 2f0bfb85f4bde7a4c2d41d5aca6394b3aea5e8a6 Mon Sep 17 00:00:00 2001 From: Nam Gi Beom Date: Thu, 8 Feb 2024 07:22:43 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20working=20directory=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-fluentbit.yml | 6 ++++++ fluentbit/fluent-bit.conf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-fluentbit.yml b/.github/workflows/deploy-fluentbit.yml index 2c80dda..3fc030f 100644 --- a/.github/workflows/deploy-fluentbit.yml +++ b/.github/workflows/deploy-fluentbit.yml @@ -40,12 +40,15 @@ jobs: deploy-dev: runs-on: ubuntu-latest + env: + working-directory: ./fluentbit needs: aws-config steps: - name: Build and push image to Amazon ECR run: | docker build -t ${{ env.ECR_URI }}/${{ env.DEV_REPO }}:${{ env.TAG }} . docker push ${{ env.ECR_URI }}/${{ env.DEV_REPO }}:${{ env.TAG }} + working-directory: ${{ env.working-directory }} - name: Pull image from Amazon ECR and restart container in EC2 uses: appleboy/ssh-action@master @@ -61,12 +64,15 @@ jobs: deploy-prod: runs-on: ubuntu-latest + env: + working-directory: ./fluentbit needs: aws-config steps: - name: Build and push image to Amazon ECR run: | docker build -t ${{ env.ECR_URI }}/${{ env.PROD_REPO }}:${{ env.TAG }} . docker push ${{ env.ECR_URI }}/${{ env.PROD_REPO }}:${{ env.TAG }} + working-directory: ${{ env.working-directory }} - name: Download task definition run: | diff --git a/fluentbit/fluent-bit.conf b/fluentbit/fluent-bit.conf index 7aa9cb4..6e96ce5 100644 --- a/fluentbit/fluent-bit.conf +++ b/fluentbit/fluent-bit.conf @@ -37,4 +37,4 @@ [OUTPUT] name stdout - match * \ No newline at end of file + match *