-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Katyusha-Group/Front-End in…
…to dev
- Loading branch information
Showing
14 changed files
with
273 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: CI CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Replace 'main' with your primary branch name | ||
pull_request: | ||
branches: | ||
- main # Replace 'main' with your primary branch name | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build and run tests | ||
run: | | ||
docker compose up --build | ||
docker exec docker-react-i "npm test" | ||
Deploy: | ||
name: deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Connect | ||
uses: appleboy/ssh-action@master | ||
with: | ||
username: ${{ secrets.USERNAME }} | ||
password: ${{ secrets.PASSWORD }} | ||
host: ${{ secrets.HOST }} | ||
port: ${{ secrets.PORT }} | ||
script: | | ||
cd ${{ secrets.PATH }} | ||
docker compose stop | ||
git pull | ||
docker compose restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: React CI with Docker Compose | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
docker: | ||
image: docker:20.10.7 | ||
options: --privileged | ||
ports: | ||
- 8081:80 | ||
env: | ||
DOCKER_DRIVER: overlay2 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build and run services with Docker Compose | ||
run: | ||
docker-compose -f docker-compose.yml up -d --build | ||
|
||
- name: Run tests | ||
run: | ||
docker exec -it docker-react-c npm test | ||
|
||
- name: Stop services | ||
run: docker-compose -f docker-compose.yml down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Replace 'main' with your primary branch name | ||
pull_request: | ||
branches: | ||
- main # Replace 'main' with your primary branch name | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build and run tests | ||
run: | | ||
docker-compose up --build | ||
docker exec docker-react-c "npm test" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: React CI with Docker Compose | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
docker: | ||
image: docker:20.10.7 | ||
options: --privileged | ||
ports: | ||
- 8081:80 | ||
env: | ||
DOCKER_DRIVER: overlay2 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build and run services with Docker Compose | ||
run: | ||
docker-compose -f docker-compose.yml up -d --build | ||
|
||
- name: Run tests | ||
run: | ||
docker exec -it docker-react-c npm test | ||
|
||
- name: Stop services | ||
run: docker-compose -f docker-compose.yml down |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.