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

Update docker_compose.yml #54

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
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
19 changes: 15 additions & 4 deletions .github/workflows/docker_compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,20 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create .env
run: cp .env.example .env
- name: Create public.pem
run: cp keys/public.pem.example keys/public.pem
- name: Create private.pem
run: cp keys/private.pem.example keys/private.pem
- name: Create tests .env
run: cp tests/.env.test.example tests/.env.test
- name: Build docker images
run: docker-compose build -d
- name: Enter node app container
run: docker exec -it app bash
run: docker-compose build
- name: Run docker images
run: docker-compose up -d
- name: Run tests
run: npm test
run: docker exec -t app npm test
- name: Clean up
if: success() || failure()
run: docker-compose down --rmi all -v --remove-orphans
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Node.js Backend Architecture Typescript Project
### A complete project to build a blogging platform like Medium, and FreeCodeCamp

[![Docker Compose CI](https://github.com/janishar/nodejs-backend-architecture-typescript/actions/workflows/docker_compose.yml/badge.svg)](https://github.com/janishar/nodejs-backend-architecture-typescript/actions/workflows/docker_compose.yml)

Note: This is the **latest (version 2)** of the project. If you are using **version 1** then checkout the branch [**version-1**](https://github.com/janishar/nodejs-backend-architecture-typescript/tree/version-1)

<p align="center">
Expand Down