From ed0b53a75f3adf31e602c8865683898808ccb0f8 Mon Sep 17 00:00:00 2001 From: pshenmic Date: Sun, 10 Sep 2023 19:52:57 +0700 Subject: [PATCH] Start api first --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99b08257e..64cbfb1bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,5 +90,6 @@ jobs: docker run -d --name postgres -e POSTGRES_PASSWORD=indexer -e POSTGRES_USER=indexer -e POSTGRES_DB=indexer -p 5432:5432 postgres sleep 10 docker run --rm -e DATABASE_URL=postgres://indexer:indexer@172.17.0.1:5432/indexer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer refinery migrate -e DATABASE_URL -p /app/migrations -t 1 - docker run -d --name platform-explorer-indexer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer cargo run docker run -d -p 3005:3005 --restart always --env-file api.env --name platform-explorer-api ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:api + sleep 3 + docker run -d --name platform-explorer-indexer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer cargo run