Skip to content

Commit

Permalink
refactor: 블루 포트 및 그린 포트 추출 스크립트 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
reddevilmidzy authored Dec 12, 2024
1 parent 4ff019e commit d31c0d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/be_cd-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,15 @@ jobs:
run: |
sudo mv be_app-docker-compose.yml ${{ secrets.DOCKER_COMPOSE_YAML_PATH }}/
- name: Extract secrets as .be_app-env file
- name: Run deploy script
run: |
chmod +x ./deploy.sh
source ./deploy.sh
echo "BLUE_PORT=$BLUE_PORT" >> $GITHUB_ENV
echo "GREEN_PORT=$GREEN_PORT" >> $GITHUB_ENV
- name: Extract secrets as .be_app-env file
run: |
IFS=":" read -r INSTANCE_NAME INSTANCE_PREFIX <<< "${{ matrix.instance }}"
cat <<EOF > ${{ secrets.DOCKER_COMPOSE_YAML_PATH }}/.be_app-env
Expand Down

0 comments on commit d31c0d2

Please sign in to comment.