Skip to content

Commit

Permalink
chore: add seed for production
Browse files Browse the repository at this point in the history
  • Loading branch information
wielopolski committed Jan 10, 2025
1 parent 4e73876 commit 4654041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-api-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
ECS_CLUSTER: ${{ secrets.AWS_ECS_CLUSTER }}
ECS_SERVICE: ${{ secrets.AWS_ECS_SERVICE }}
DOCKER_IMAGE: ${{ secrets.AWS_ECR_REGISTRY }}:${{ github.sha }}
run: selleo aws ecs deploy --region $AWS_REGION --cluster $ECS_CLUSTER --service $ECS_SERVICE --docker-image $DOCKER_IMAGE --one-off migrate --one-off seed
run: selleo aws ecs deploy --region $AWS_REGION --cluster $ECS_CLUSTER --service $ECS_SERVICE --docker-image $DOCKER_IMAGE --one-off migrate --one-off seed-prod

- name: ECS Run migrations
env:
Expand All @@ -69,4 +69,4 @@ jobs:
AWS_REGION: ${{ secrets.AWS_REGION }}
ECS_CLUSTER: ${{ secrets.AWS_ECS_CLUSTER }}
ECS_SERVICE: ${{ secrets.AWS_ECS_SERVICE }}
run: selleo aws ecs run --region $AWS_REGION --cluster $ECS_CLUSTER --service $ECS_SERVICE --one-off seed
run: selleo aws ecs run --region $AWS_REGION --cluster $ECS_CLUSTER --service $ECS_SERVICE --one-off seed-prod
2 changes: 1 addition & 1 deletion apps/api/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ elif [ $COMMAND = "migrate" ]; then
npm run db:migrate
elif [ $COMMAND = "seed" ]; then
echo "Running seeds..."
npm run db:seed-prod
npm run db:seed-staging
elif [ $COMMAND = "seed-prod" ]; then
echo "Running seeds..."
npm run db:seed-prod
Expand Down

0 comments on commit 4654041

Please sign in to comment.