Skip to content

Commit 5bcb7ec

Browse files
authored
Address review comments from previous PR (#162)
* Address review comments from previous PR * review comments from previous PR * fix the extra space
1 parent a20f92b commit 5bcb7ec

1 file changed

Lines changed: 25 additions & 18 deletions

File tree

.github/workflows/ebs-common-stage-prod.yml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -207,27 +207,34 @@ jobs:
207207
chmod +x /root/deploy/ebs-staging-prod.sh
208208
209209
if [ "${{ github.event.inputs.environment }}" = "staging" ]; then
210-
/root/deploy/ebs-staging-prod.sh \
211-
--image forwardemailforaifirstdesk/langflow:staging-${{ steps.branch.outputs.branch_name }}-${{ steps.commit.outputs.commit_id }} \
212-
--domain ${{env.STAGING_HOST}} \
213-
--email ${{ github.event.inputs.email }} \
214-
--env-file /root/.env-file \
215-
--db-user ${{ secrets.POSTGRES_USER }} \
216-
--db-password ${{ secrets.POSTGRES_PASSWD }} \
217-
--db-name ${{ secrets.POSTGRES_DB }} \
218-
--volume-name ${{ vars.STAGING_VOLUME_NAME }}
210+
IMAGE="forwardemailforaifirstdesk/langflow:staging-${{ steps.branch.outputs.branch_name }}-${{ steps.commit.outputs.commit_id }}"
211+
DOMAIN="${{env.STAGING_HOST}}"
212+
EMAIL="${{ github.event.inputs.email }}"
213+
ENV_FILE="/root/.env-file"
214+
DB_USER="${{ secrets.POSTGRES_USER }}"
215+
DB_PASSWORD="${{ secrets.POSTGRES_PASSWD }}"
216+
DB_NAME="${{ secrets.POSTGRES_DB }}"
217+
VOLUME_NAME="${{ vars.STAGING_VOLUME_NAME }}"
219218
else
220-
/root/deploy/ebs-staging-prod.sh \
221-
--image forwardemailforaifirstdesk/langflow:prod-${{ steps.branch.outputs.branch_name }}-${{ steps.commit.outputs.commit_id }} \
222-
--domain ${{env.PROD_HOST}} \
223-
--email ${{ github.event.inputs.email }} \
224-
--env-file /root/.env-file \
225-
--db-user ${{ secrets.PROD_POSTGRES_USER }} \
226-
--db-password ${{ secrets.PROD_POSTGRES_PASSWD }} \
227-
--db-name ${{ secrets.PROD_POSTGRES_DB }} \
228-
--volume-name ${{ vars.PROD_VOLUME_NAME }}
219+
IMAGE="forwardemailforaifirstdesk/langflow:prod-${{ steps.branch.outputs.branch_name }}-${{ steps.commit.outputs.commit_id }}"
220+
DOMAIN="${{env.PROD_HOST}}"
221+
EMAIL="${{ github.event.inputs.email }}"
222+
ENV_FILE="/root/.env-file"
223+
DB_USER="${{ secrets.PROD_POSTGRES_USER }}"
224+
DB_PASSWORD="${{ secrets.PROD_POSTGRES_PASSWD }}"
225+
DB_NAME="${{ secrets.PROD_POSTGRES_DB }}"
226+
VOLUME_NAME="${{ vars.PROD_VOLUME_NAME }}"
229227
fi
230228
229+
/root/deploy/ebs-staging-prod.sh \
230+
--image "$IMAGE" \
231+
--domain "$DOMAIN" \
232+
--email "$EMAIL" \
233+
--env-file "$ENV_FILE" \
234+
--db-user "$DB_USER" \
235+
--db-password "$DB_PASSWORD" \
236+
--db-name "$DB_NAME" \
237+
--volume-name "$VOLUME_NAME"
231238
- name: Copy deploy_status.env from VM
232239
run: |
233240
sshpass -p "${{ secrets.VM_PASSWORD }}" scp -o StrictHostKeyChecking=no \

0 commit comments

Comments
 (0)