Skip to content

Commit

Permalink
test: 환경변수 주입 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Jul 5, 2024
1 parent bf1f9ba commit 137c3fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci-cd-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
runs-on: ubuntu-latest
env:
DEPLOY_TARGET: ${{ needs.setup.outputs.deploy_target }}
# TODO: 멀티모듈 적용시 동적 할당 필요
# TODO: 멀티모듈 적용시 동적 할당 필요
MODULE: "layer-api"

steps:
Expand All @@ -126,4 +126,8 @@ jobs:
username: ${{ secrets.INSTANCE_USERNAME }}
password: ${{ secrets.INSTANCE_PASSWORD }}
port: 22
script: cd /home/${{ env.MODULE }}/infra/${{ env.DEPLOY_TARGET }} && docker-compose pull && docker-compose up -d
script: |
cd /home/${{ env.MODULE }}/infra/${{ env.DEPLOY_TARGET }}
echo "${{ secrets.APPLICATION_YAML_API }}" > application.yaml
docker-compose pull
docker-compose up -d

0 comments on commit 137c3fa

Please sign in to comment.