Skip to content

Commit

Permalink
fix: working directory 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
GIVEN53 committed Feb 7, 2024
1 parent b71021e commit 2f0bfb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-fluentbit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion fluentbit/fluent-bit.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@

[OUTPUT]
name stdout
match *
match *

0 comments on commit 2f0bfb8

Please sign in to comment.