Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy action syntax fix #277

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
script: |
docker stop $(docker ps -f name=pe-testnet-api -q) || true
docker stop $(docker ps -f name=pe-testnet-indexer -q) || true
# docker stop $(docker ps -f name=pe-mainnet-api -q) || true
# docker stop $(docker ps -f name=pe-mainnet-indexer -q) || true
docker rm pe-testnet-api pe-testnet-indexer || true

drop_db:
Expand Down Expand Up @@ -71,9 +69,6 @@ jobs:
docker run --rm --env-file testnet.env ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:api npm run db:drop
docker run --rm --env-file testnet.env -v ./platform-explorer/packages/indexer/migrations:/migrations owl352/refinery_cli_docker ./refinery migrate -e DATABASE_URL -p /migrations

# docker run --rm --env-file production.env ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:api npm run db:drop
# docker run --rm --env-file production.env -v ./platform-explorer/packages/indexer/migrations:/migrations owl352/refinery_cli_docker ./refinery migrate -e DATABASE_URL -p /migrations

start:
runs-on: ubuntu-latest

Expand All @@ -98,7 +93,3 @@ jobs:
docker run -d -p 3005:3005 --restart always --env-file testnet.env --name pe-testnet-api ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:api
sleep 3
docker run -d --env-file testnet.env --restart always --name pe-testnet-indexer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer ./indexer
sleep 3
# docker run -d -p 3006:3005 --restart always --env-file production.env --name pe-mainnet-api ghcr.io/pshenmic/platform-explorer:api
sleep 3
# docker run -d --env-file production.env --restart always --name pe-mainnet-indexer ghcr.io/pshenmic/platform-explorer:indexer ./indexer
Loading