-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from d0rich/monorepo-deploy
Deploy using features of monorepo
- Loading branch information
Showing
20 changed files
with
98 additions
and
2,203 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,11 @@ | ||
FROM node:20-alpine | ||
|
||
WORKDIR /usr/src/base | ||
|
||
COPY package.json package-lock.json ./ | ||
|
||
# npm ci is used to install dependencies from package-lock.json | ||
# it saves time on calculating dependencies tree | ||
RUN npm ci | ||
|
||
COPY . . |
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,33 @@ | ||
# BigFiles CI | ||
|
||
This folder contains the main configuration files for the BigFiles CI. | ||
|
||
## Manual configuration | ||
|
||
Part of the configuration is done manually. | ||
|
||
> **Note:** pay attention to manual configuration when updating the CI. | ||
### Main NGINX proxy | ||
|
||
Folder `.ci/nginx-proxy` contains the configuration for the main NGINX proxy with sertificates. It is built and run on the host machine manually. It watches for the new containers and automatically adds them to the proxy configuration. | ||
|
||
If there are any changes in the configuration, the proxy should be restarted manually. | ||
|
||
### Dotenv files | ||
|
||
`.env` files are ignored by the git. These files are created manually on the host machine: | ||
|
||
- `ton-drive-backend/.env` | ||
- `ton-drive-frontend/.env` | ||
|
||
If you want to change the configuration, you should change the `.env` files on the host machine. | ||
|
||
> **Note:** if you want to add some `.env` file to the git, pay attention to how it will affect the CI. | ||
## Automatic configuration | ||
|
||
After the commit to the `master` branch, the CI automatically builds and runs the containers on the host machine. You can read more here: | ||
|
||
- [`ton-drive-backend/docker-compose.yaml`](../ton-drive-backend/docker-compose.yaml) | ||
- [`ton-drive-frontend/docker-compose.yml`](../ton-drive-frontend/docker-compose.yml) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -21,4 +21,4 @@ jobs: | |
script: | | ||
cd BigFiles | ||
git pull --all | ||
sh build.sh | ||
sh ./.ci/build.sh |
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 |
---|---|---|
|
@@ -21,4 +21,4 @@ jobs: | |
script: | | ||
cd BigFiles | ||
git pull --all | ||
sh build.sh | ||
sh ./.ci/build.sh |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
node_modules | ||
temp | ||
# TODO build wrappers in CI and ignore all build artifacts | ||
build/**/*.abi | ||
build/**/*.boc | ||
build/**/*.fif | ||
build/**/*.fc | ||
build/**/*.md | ||
build/**/*.pkg | ||
build/**/*.json | ||
build | ||
|
Oops, something went wrong.