diff --git a/.github/workflows/build-node-python.yml b/.github/workflows/build-node-python.yml index 8161f080..7a04e9c3 100644 --- a/.github/workflows/build-node-python.yml +++ b/.github/workflows/build-node-python.yml @@ -75,6 +75,7 @@ env: PYPI_USERNAME: "datavisyn" PYTHON_VERSION: "3.10" WORKFLOW_BRANCH: "new_deployment_no_ports" + GH_ACTIONS_SELF_HOSTED_NETWORK_NAME: "" permissions: contents: read @@ -160,10 +161,12 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - ports: - - "5434:5432" + --name postgres steps: + - name: Connect service to default network + if: ${{ env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} + run: docker network connect $GH_ACTIONS_SELF_HOSTED_NETWORK_NAME postgres - name: Checkout source repository uses: actions/checkout@v4 with: @@ -256,8 +259,7 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - ports: - - "5434:5432" + --name postgres steps: - name: Checkout source repository