Skip to content

Commit

Permalink
chore: try with sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Aug 10, 2023
1 parent dbc1d8f commit c96b73d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Docker
run: |
docker-compose -f docker-compose.ci.yml up -d
docker compose run app cd app && npx prisma migrate dev
run: docker-compose -f docker-compose.ci.yml up -d
- name: Run specs
uses: cypress-io/github-action@v5
env:
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN npm run build
FROM node:18.12.0-alpine AS runner

WORKDIR /app
COPY --from=build /app/.env ./.env
COPY --from=build /app/.env ./
COPY --from=build /app/app_run.ci.sh ./
COPY --from=build /app/package*.json ./
COPY --from=build /app/prisma ./prisma
COPY --from=build /app/public ./public
Expand All @@ -25,4 +26,4 @@ RUN npx prisma generate

EXPOSE 3000

CMD ["node_modules/.bin/concurrently", "node background/worker/index.js", "node server.js"]
CMD sh ./app_run.ci.sh
3 changes: 3 additions & 0 deletions app_run.ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
npx prisma migrate dev
node_modules/.bin/concurrently 'node background/worker/index.js' 'node server.js'

0 comments on commit c96b73d

Please sign in to comment.