Skip to content

Commit 9ea3f75

Browse files
authored
feat: add CLI and monorepo (#10)
add nginx-proxy-cli that can be used to automate deployment add monorepo
1 parent adf6508 commit 9ea3f75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+14734
-22
lines changed

.github/workflows/deploy-docs.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'documentation/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
deploy:
12+
name: Deploy
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: documentation
17+
steps:
18+
- name: Checkout Git repository
19+
uses: actions/checkout@v2
20+
- name: Deploy
21+
uses: appleboy/ssh-action@master
22+
with:
23+
host: ${{ secrets.SSH_HOST }}
24+
username: ${{ secrets.SSH_USERNAME }}
25+
password: ${{ secrets.SSH_PASSWORD }}
26+
envs: GITHUB_SERVER_URL,GITHUB_REPOSITORY,GITHUB_REF_NAME
27+
# TODO: remove @beta after PR is merged and nginx-proxy-cli has been released
28+
script: npx nginx-proxy-cli@beta deploy $GITHUB_SERVER_URL/$GITHUB_REPOSITORY --dir=~/nginx-proxy/applications --branch=$GITHUB_REF_NAME --folder=nginxproxy.lars-rickert.de --root=documentation

.github/workflows/release-cli.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Semantic release (CLI)
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- next
7+
- beta
8+
- alpha
9+
paths:
10+
- 'cli/**'
11+
workflow_dispatch:
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: cli
20+
steps:
21+
- name: Checkout Git repository
22+
uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
- name: Setup Node
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: '16'
29+
cache: 'npm'
30+
cache-dependency-path: cli/package-lock.json
31+
- name: Install node modules
32+
run: npm ci
33+
- name: Release
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
run: npx semantic-release

.gitignore

-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
11
.DS_STORE
2-
3-
#
4-
# Exclude common files and directories for examples/applications running in a subfolder of this nginx-proxy:
5-
#
6-
.env
7-
db
8-
data
9-
wp-content

cli/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
bin

cli/CHANGELOG.md

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# [nginx-proxy-cli-v1.0.0-beta.9](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.8...nginx-proxy-cli-v1.0.0-beta.9) (2022-04-14)
2+
3+
4+
### Bug Fixes
5+
6+
* existing remote git url not recognized correctly ([a4be25a](https://github.com/larsrickert/nginx-proxy/commit/a4be25a3577e166a365d3647936833ab32da9c7b))
7+
8+
# [nginx-proxy-cli-v1.0.0-beta.8](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.7...nginx-proxy-cli-v1.0.0-beta.8) (2022-04-14)
9+
10+
11+
### Bug Fixes
12+
13+
* node fs not correctly handling linux paths ([d546a9d](https://github.com/larsrickert/nginx-proxy/commit/d546a9dad8331213619a079746873867548631d5))
14+
15+
# [nginx-proxy-cli-v1.0.0-beta.7](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.6...nginx-proxy-cli-v1.0.0-beta.7) (2022-04-13)
16+
17+
18+
### Code Refactoring
19+
20+
* remove `setup` command ([77f1dbc](https://github.com/larsrickert/nginx-proxy/commit/77f1dbc5a220d0c45a57e6ebfd6de4770e7cef30))
21+
22+
23+
### BREAKING CHANGES
24+
25+
* remove `setup` command
26+
27+
# [nginx-proxy-cli-v1.0.0-beta.6](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.5...nginx-proxy-cli-v1.0.0-beta.6) (2022-04-12)
28+
29+
30+
### Bug Fixes
31+
32+
* add `public` dir to published npm files ([dbae546](https://github.com/larsrickert/nginx-proxy/commit/dbae546cabae9c89686282d6012be9efe0077cf2))
33+
34+
# [nginx-proxy-cli-v1.0.0-beta.5](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.4...nginx-proxy-cli-v1.0.0-beta.5) (2022-04-12)
35+
36+
37+
### Features
38+
39+
* add `setup` command ([a900b1f](https://github.com/larsrickert/nginx-proxy/commit/a900b1f10839396199f445f6649adf7ebfa66929))
40+
41+
# [nginx-proxy-cli-v1.0.0-beta.4](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.3...nginx-proxy-cli-v1.0.0-beta.4) (2022-04-12)
42+
43+
44+
### Features
45+
46+
* add `--folder` and `--root` option ([14b5746](https://github.com/larsrickert/nginx-proxy/commit/14b57467b4571bf442ea1bbb7d300dab404322e1))
47+
48+
# [nginx-proxy-cli-v1.0.0-beta.3](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.2...nginx-proxy-cli-v1.0.0-beta.3) (2022-04-12)
49+
50+
51+
### Bug Fixes
52+
53+
* not waiting for shell scripts to finish ([8920b9e](https://github.com/larsrickert/nginx-proxy/commit/8920b9ed19e5399db343e719493370774936d70c))
54+
55+
# [nginx-proxy-cli-v1.0.0-beta.2](https://github.com/larsrickert/nginx-proxy/compare/nginx-proxy-cli-v1.0.0-beta.1...nginx-proxy-cli-v1.0.0-beta.2) (2022-04-12)
56+
57+
58+
### Features
59+
60+
* initial release ([a119435](https://github.com/larsrickert/nginx-proxy/commit/a1194350757e423d27c4b59b17bf1567620278bd))
61+
62+
# nginx-proxy-cli-v1.0.0-beta.1 (2022-04-11)
63+
64+
65+
### Features
66+
67+
* initial release ([3f06a0d](https://github.com/larsrickert/nginx-proxy/commit/3f06a0d51b0bc43a50bb61acaebb872c890e1e2f))

cli/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Lars Rickert
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

cli/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# nginx-proxy-cli
2+
3+
The nginx-proxy-cli can be used to e.g. simplify or automate the deployment of applications.
4+
5+
# [Documentation](https://nginxproxy.lars-rickert.de/cli/usage)
6+
7+
# [CHANGELOG](https://github.com/larsrickert/nginx-proxy/blob/beta/cli/CHANGELOG.md)

0 commit comments

Comments
 (0)