-
Notifications
You must be signed in to change notification settings - Fork 2
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 #479 from OpenHausIO/dev
v3.0.0 release
- Loading branch information
Showing
119 changed files
with
9,146 additions
and
4,645 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,45 @@ | ||
name: Publish Docker nightly image | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'OpenHausIO/backend' && github.event.pull_request.merged == true | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- run: npm ci | ||
- run: npm run build | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: openhaus/backend | ||
|
||
- name: Build and push Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: openhaus/backend:nightly | ||
labels: ${{ steps.meta.outputs.labels }} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run lint |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
```systemd | ||
[Unit] | ||
Description=firewalld - dynamic firewall daemon | ||
Before=network-pre.target | ||
Wants=network-pre.target | ||
After=dbus.service | ||
After=polkit.service | ||
Conflicts=iptables.service ip6tables.service ebtables.service ipset.service nftables.service | ||
Documentation=man:firewalld(1) | ||
[Service] | ||
EnvironmentFile=-/etc/sysconfig/firewalld | ||
ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
# supress to log debug and error output also to /var/log/messages | ||
StandardOutput=null | ||
StandardError=null | ||
Type=dbus | ||
BusName=org.fedoraproject.FirewallD1 | ||
KillMode=mixed | ||
[Install] | ||
WantedBy=multi-user.target | ||
Alias=dbus-org.fedoraproject.FirewallD1.service | ||
``` | ||
|
||
https://systemd-devel.freedesktop.narkive.com/dpY7US7K/a-little-help-with-mainpid-please | ||
|
||
|
||
OpenHaus relevant/verbesserung?! | ||
|
||
|
||
---------------- | ||
|
||
Use husky for git hooks? | ||
|
||
https://www.npmjs.com/package/husky | ||
https://typicode.github.io/husky/ |
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,17 +1,20 @@ | ||
[Unit] | ||
Description=OpenHaus Backend | ||
Documentation=https://docs.open-haus.io | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
ExecStart=/usr/bin/node /opt/OpenHaus/backend/index.js | ||
WorkingDirectory=/opt/OpenHaus/backend | ||
Restart=always | ||
EnvironmentFile=/opt/OpenHaus/backend/.env | ||
Restart=on-failure | ||
RestartSec=10 | ||
Environment=NODE_ENV=production | ||
Environment=VAULT_MASTER_PASSWORD=Pa$$w0rd | ||
Environment=USERS_JWT_SECRET=Pa$$w0rd | ||
Environment=UUID=00000000-0000-0000-0000-000000000000 | ||
Type=simple | ||
#Environment=NODE_ENV=production | ||
#Environment=VAULT_MASTER_PASSWORD=Pa$$w0rd | ||
#Environment=USERS_JWT_SECRET=Pa$$w0rd | ||
#Environment=UUID=00000000-0000-0000-0000-000000000000 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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.