Skip to content

Commit

Permalink
ci: export nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
wildan3105 committed Nov 18, 2024
1 parent 978263f commit 93f9ecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-blue-green.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
envs: ACTIVE_ENV,TARGET_ENV,TARGET_DIR,TARGET_PORT
script: |
echo "Deployment using blue-green is started..."
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
echo "Determining the current active environment..."
if grep -q "proxy_pass http://localhost:${{ env.BLUE_PORT }};" "${{ env.NGINX_CONF }}"; then
export ACTIVE_ENV="${{ env.BLUE_NAME }}"
Expand Down

0 comments on commit 93f9ecd

Please sign in to comment.