Skip to content

feat: add CLI and monorepo #10

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

Merged
merged 41 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3f06a0d
feat: initial release
larsrickert Apr 10, 2022
ab5c7d7
chore: add missing semantic-release dependencies
larsrickert Apr 10, 2022
88c1df0
chore: add missing dependency
larsrickert Apr 10, 2022
13c4192
chore(release): 1.0.0-cli.1 [skip ci]
semantic-release-bot Apr 10, 2022
4a2a44b
chore: remove `cli` release branch in favor of `beta`
larsrickert Apr 11, 2022
a3cf574
chore(release): 1.0.0-beta.1 [skip ci]
semantic-release-bot Apr 11, 2022
90d29eb
docs: add vitepress documentation
larsrickert Apr 11, 2022
9c40159
refactor: move setup files into seperate directory
larsrickert Apr 11, 2022
a18a778
docs: clean up CHANGELOG
larsrickert Apr 12, 2022
a119435
feat: initial release
larsrickert Apr 12, 2022
17b2048
chore(release): 1.0.0-beta.2 [skip ci]
semantic-release-bot Apr 12, 2022
f51488f
docs: add CD for documentation
larsrickert Apr 12, 2022
81cfa69
Merge branch 'beta' of https://github.com/larsrickert/nginx-proxy int…
larsrickert Apr 12, 2022
c7e83a2
add temp beta docs deploy trigger
larsrickert Apr 12, 2022
66123e6
docs: add package.json details
larsrickert Apr 12, 2022
d1e3661
chore: fix deploy branch
larsrickert Apr 12, 2022
6aef142
chore: remove docs deployment beta trigger
larsrickert Apr 12, 2022
8920b9e
fix: not waiting for shell scripts to finish
larsrickert Apr 12, 2022
22cc852
chore(release): 1.0.0-beta.3 [skip ci]
semantic-release-bot Apr 12, 2022
5444987
docs: test docs CD action
larsrickert Apr 12, 2022
3ea49f0
Merge branch 'beta' of https://github.com/larsrickert/nginx-proxy int…
larsrickert Apr 12, 2022
1cf50aa
chore: add beta trigger for docs CD
larsrickert Apr 12, 2022
36dabbe
docs: test CD
larsrickert Apr 12, 2022
9f82880
chore: remove beta trigger
larsrickert Apr 12, 2022
14b5746
feat: add `--folder` and `--root` option
larsrickert Apr 12, 2022
f4eb05f
chore(release): 1.0.0-beta.4 [skip ci]
semantic-release-bot Apr 12, 2022
a900b1f
feat: add `setup` command
larsrickert Apr 12, 2022
8395ee2
chore(release): 1.0.0-beta.5 [skip ci]
semantic-release-bot Apr 12, 2022
dbae546
fix: add `public` dir to published npm files
larsrickert Apr 12, 2022
6ce1ac3
Merge branch 'beta' of https://github.com/larsrickert/nginx-proxy int…
larsrickert Apr 12, 2022
45e9377
chore(release): 1.0.0-beta.6 [skip ci]
semantic-release-bot Apr 12, 2022
77f1dbc
refactor: remove `setup` command
larsrickert Apr 13, 2022
2fc678a
chore(release): 1.0.0-beta.7 [skip ci]
semantic-release-bot Apr 13, 2022
39c72ba
refactor: refactor default dir
larsrickert Apr 14, 2022
aba2ec6
docs: add cli docs
larsrickert Apr 14, 2022
16b4b5c
docs: add README
larsrickert Apr 14, 2022
a08bd3f
chore: add PR note
larsrickert Apr 14, 2022
d546a9d
fix: node fs not correctly handling linux paths
larsrickert Apr 14, 2022
84a16db
chore(release): 1.0.0-beta.8 [skip ci]
semantic-release-bot Apr 14, 2022
a4be25a
fix: existing remote git url not recognized correctly
larsrickert Apr 14, 2022
95cb427
chore(release): 1.0.0-beta.9 [skip ci]
semantic-release-bot Apr 14, 2022
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
28 changes: 28 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy docs
on:
push:
branches:
- main
paths:
- 'documentation/**'
workflow_dispatch:

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
defaults:
run:
working-directory: documentation
steps:
- name: Checkout Git repository
uses: actions/checkout@v2
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
envs: GITHUB_SERVER_URL,GITHUB_REPOSITORY,GITHUB_REF_NAME
# TODO: remove @beta after PR is merged and nginx-proxy-cli has been released
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
37 changes: 37 additions & 0 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Semantic release (CLI)
on:
push:
branches:
- main
- next
- beta
- alpha
paths:
- 'cli/**'
workflow_dispatch:

jobs:
release:
name: Release
runs-on: ubuntu-latest
defaults:
run:
working-directory: cli
steps:
- name: Checkout Git repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: cli/package-lock.json
- name: Install node modules
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
.DS_STORE

#
# Exclude common files and directories for examples/applications running in a subfolder of this nginx-proxy:
#
.env
db
data
wp-content
2 changes: 2 additions & 0 deletions cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
bin
67 changes: 67 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# [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)


### Bug Fixes

* existing remote git url not recognized correctly ([a4be25a](https://github.com/larsrickert/nginx-proxy/commit/a4be25a3577e166a365d3647936833ab32da9c7b))

# [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)


### Bug Fixes

* node fs not correctly handling linux paths ([d546a9d](https://github.com/larsrickert/nginx-proxy/commit/d546a9dad8331213619a079746873867548631d5))

# [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)


### Code Refactoring

* remove `setup` command ([77f1dbc](https://github.com/larsrickert/nginx-proxy/commit/77f1dbc5a220d0c45a57e6ebfd6de4770e7cef30))


### BREAKING CHANGES

* remove `setup` command

# [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)


### Bug Fixes

* add `public` dir to published npm files ([dbae546](https://github.com/larsrickert/nginx-proxy/commit/dbae546cabae9c89686282d6012be9efe0077cf2))

# [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)


### Features

* add `setup` command ([a900b1f](https://github.com/larsrickert/nginx-proxy/commit/a900b1f10839396199f445f6649adf7ebfa66929))

# [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)


### Features

* add `--folder` and `--root` option ([14b5746](https://github.com/larsrickert/nginx-proxy/commit/14b57467b4571bf442ea1bbb7d300dab404322e1))

# [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)


### Bug Fixes

* not waiting for shell scripts to finish ([8920b9e](https://github.com/larsrickert/nginx-proxy/commit/8920b9ed19e5399db343e719493370774936d70c))

# [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)


### Features

* initial release ([a119435](https://github.com/larsrickert/nginx-proxy/commit/a1194350757e423d27c4b59b17bf1567620278bd))

# nginx-proxy-cli-v1.0.0-beta.1 (2022-04-11)


### Features

* initial release ([3f06a0d](https://github.com/larsrickert/nginx-proxy/commit/3f06a0d51b0bc43a50bb61acaebb872c890e1e2f))
21 changes: 21 additions & 0 deletions cli/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Lars Rickert

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# nginx-proxy-cli

The nginx-proxy-cli can be used to e.g. simplify or automate the deployment of applications.

# [Documentation](https://nginxproxy.lars-rickert.de/cli/usage)

# [CHANGELOG](https://github.com/larsrickert/nginx-proxy/blob/beta/cli/CHANGELOG.md)
Loading