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 main.yaml #2573

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f392157
Update main.yaml
new-user888 Oct 4, 2024
11733e5
Update main.yaml
new-user888 Oct 4, 2024
44bf7f1
Merge pull request #2576 from ita-social-projects/adding-cache-for-do…
new-user888 Oct 4, 2024
9f935c7
Update main.yaml
new-user888 Oct 4, 2024
e200a32
Update main.yaml
new-user888 Oct 4, 2024
24b5331
Update main.yaml
new-user888 Oct 4, 2024
da3e9b3
Update main.yaml
new-user888 Oct 4, 2024
876135c
Update main.yaml
new-user888 Oct 4, 2024
c5b2403
Update main.yaml
new-user888 Oct 4, 2024
ad5a9d5
Update main.yaml
new-user888 Oct 4, 2024
757598b
Update main.yaml
new-user888 Oct 4, 2024
fa5b135
Update main.yaml
new-user888 Oct 5, 2024
5279267
Update main.yaml
new-user888 Oct 5, 2024
7833abe
Create compose-gh-ci.yaml
new-user888 Oct 5, 2024
1cb2dd0
Update main.yaml
new-user888 Oct 5, 2024
331dd93
Update main.yaml
new-user888 Oct 5, 2024
8616d90
Update main.yaml
new-user888 Oct 5, 2024
983a9b8
Update compose-gh-ci.yaml
new-user888 Oct 5, 2024
c5303f6
Update main.yaml
new-user888 Oct 5, 2024
a745775
Update compose-gh-ci.yaml
new-user888 Oct 5, 2024
fc613bf
Update compose-gh-ci.yaml
new-user888 Oct 5, 2024
bb1cceb
Update main.yaml
new-user888 Oct 5, 2024
1c13c68
Update main.yaml
new-user888 Oct 5, 2024
cc719e2
Update main.yaml
new-user888 Oct 5, 2024
4160690
Update main.yaml
new-user888 Oct 5, 2024
8a851e8
Update main.yaml
new-user888 Oct 5, 2024
bd5c6ea
Update main.yaml
new-user888 Oct 6, 2024
bd589ea
Update main.yaml
new-user888 Oct 6, 2024
3993d3f
Update main.yaml
new-user888 Oct 6, 2024
7a5ca31
Update main.yaml
new-user888 Oct 6, 2024
030b5b8
Update main.yaml
new-user888 Oct 6, 2024
67d6a99
Update main.yaml
new-user888 Oct 6, 2024
b1537dd
Update package.json
new-user888 Oct 6, 2024
b6924ca
Update main.yaml
new-user888 Oct 6, 2024
beb8747
Update main.yaml
new-user888 Oct 6, 2024
a75ac14
Update package.json
new-user888 Oct 6, 2024
b37cf70
Update package.json
new-user888 Oct 6, 2024
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
32 changes: 21 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'

- name : Npm Install
run: npm install
Expand All @@ -28,7 +29,7 @@ jobs:
run : npm run lint

- name : Test
run: npm test
run: npx cross-env CI=true vitest --sequence.concurrent --minWorkers 15 --maxWorkers 20

- name : Check Path
run: ls -la && pwd && ls -la /
Expand All @@ -43,15 +44,24 @@ jobs:
Test_Docker:
runs-on: ubuntu-latest
steps:

#Checkout Repository
- uses: actions/checkout@v3

- name: Test Docker Compose
uses: isbang/[email protected]
- name: Checkout
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Dockerfile.stage
uses: docker/build-push-action@v6
with:
compose-file: "./compose.yaml"
up-flags: "-d --build"
env:
password: ${{ secrets.DOCKER_PASS }}
push: false
file: ./docker/Dockerfile.stage
cache-from: type=gha
cache-to: type=gha, mode=max
tags: ci-dockerfile:stage
build-args: |
NGINX_VERSION=1.19.6
PROXY_API_URL=${secrets.API_URL}
password=${secrets.SERVER_PASS}



27 changes: 27 additions & 0 deletions compose-gh-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
services:
builder:
container_name: builder
image: ci-dockerfile:build
volumes:
- build:/usr/src/

nginx:
container_name: nginx-proxy
image: ci-dockerfile:stage
# Expose ports 80 and 2222 from the container
ports:
- '80:80'
- '2222:2222'
# Enable tty and stdin for the container
stdin_open: true
tty: true
# Mount the build volume to /usr/share/nginx/html in the container
volumes:
- build:/usr/share/nginx/html
# Specify dependencies between services
depends_on:
- builder

# Define build volume
volumes:
build:
Loading