Skip to content

Commit

Permalink
fix db host
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Oct 1, 2024
1 parent 4da9094 commit aa820d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ jobs:
env:
CONTAINER_NAME: yugabyte-${{ github.run_id }}
outputs:
container_name: ${{ steps.get-ports.outputs.container_name }}
postgres_port: ${{ steps.get-ports.outputs.postgres_port }}
ycql_port: ${{ steps.get-ports.outputs.ycql_port }}
steps:
Expand All @@ -189,7 +190,7 @@ jobs:
YCQL_PORT=$(docker inspect ${{ env.CONTAINER_NAME }} --format='{{ (index (index .NetworkSettings.Ports "9042/tcp") 0).HostPort }}')
echo "Postgres is mapped to port: $POSTGRES_PORT"
echo "YCQL is mapped to port: $YCQL_PORT"
# Use the new syntax to set output
echo "container_name=${{ env.CONTAINER_NAME }}" >> $GITHUB_OUTPUT
echo "postgres_port=$POSTGRES_PORT" >> $GITHUB_OUTPUT
echo "ycql_port=$YCQL_PORT" >> $GITHUB_OUTPUT
shell: bash
Expand All @@ -207,7 +208,7 @@ jobs:
runs-on: [self-hosted, docker]
needs: [setup-params, setup-db]
env:
CURIO_HARMONYDB_HOSTS: ${{ needs.setup-db.outputs.postgres_port }}
CURIO_HARMONYDB_HOSTS: ${{ needs.setup-db.outputs.container_name }}
CURIO_HARMONYDB_PORT: ${{ needs.setup-db.outputs.postgres_port }}
CURIO_INDEXDB_PORT: ${{ needs.setup-db.outputs.ycql_port }}
strategy:
Expand Down

0 comments on commit aa820d1

Please sign in to comment.