Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
48 changes: 0 additions & 48 deletions .github/workflows/ci_cd.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy

on:
workflow_dispatch:
inputs:
ENVIRONMENT:
description: "Environment to use (if any)"
CLEAN_INSTALL:
description: "Delete data before starting"
type: boolean
COMMIT:
description: "Repo branch or commit SHA to checkout"
OR_HOSTNAME:
description: "Host to deploy to (e.g. demo.openremote.app)"
OR_ADMIN_PASSWORD:
description: "Admin password override"

jobs:
call-main-repo:
name: CI/CD
uses: openremote/core/.github/workflows/custom-deploy.yml@1.33.0
with:
INPUTS: ${{ toJSON(github.event.inputs) }}
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This just references the CI/CD workflow in the Core OpenRemote repo
name: Review

on:
pull_request:

jobs:
call-main-repo:
name: CI/CD
uses: openremote/core/.github/workflows/custom-review.yml@1.33.0
with:
INPUTS: ${{ toJSON(github.event.inputs) }}
secrets: inherit
21 changes: 21 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Staging

on:
# Push excluding tags and workflow changes
push:
branches:
- "main"
tags-ignore:
- "*.*"
paths-ignore:
- ".github/**"
- ".ci_cd/**"
- "**/*.md"

jobs:
call-main-repo:
name: CI/CD
uses: openremote/core/.github/workflows/custom-staging.yml@1.33.0
with:
INPUTS: ${{ toJSON(github.event.inputs) }}
secrets: inherit
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ version = 1.0-SNAPSHOT

ideaExtPluginVersion = 1.4.1
spotlessVersion = 8.10.3
typescriptGeneratorVersion = 4.1.1
typescriptGeneratorVersion = 4.2.1
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[versions]
axionRelease = "1.21.2"
axionRelease = "1.21.4"
fileEncrypt = "2.1.0"
jackson = "2.21.4"
openremote = "1.30.0"
jackson = "2.21.7"
openremote = "1.33.0"
testLogger = "4.0.0"
typescript-generator = "4.1.1"
typescript-generator = "4.2.1"

[libraries]
jackson-datatype-jdk8 = { module = "com.fasterxml.jackson.datatype:jackson-datatype-jdk8", version.ref = "jackson" }
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
Expand Down
52 changes: 41 additions & 11 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
"format": "cd ui && prettier . --write",
"format:check": "cd ui && prettier . --check"
},
"resolutions": {
"axios": "1.18.1"
},
"workspaces": [
"ui/app/*",
"ui/component/*",
"ui/demo/*"
],
"devDependencies": {
"@types/node": "^24",
"@typescript-eslint/eslint-plugin": "8.40.0",
"@typescript-eslint/parser": "8.40.0",
"eslint": "8.57.1",
Expand Down
5 changes: 4 additions & 1 deletion profile/dev-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# Please see profile/deploy.yml for configuration details for each service.
#
x-base: &base https://github.com/openremote/core.git#1.30.0:profile/deploy.yml
x-base: &base https://github.com/openremote/core.git#1.33.0:profile/deploy.yml

services:
keycloak:
Expand All @@ -16,6 +16,9 @@ services:
depends_on:
postgresql:
condition: service_healthy
environment:
# manager has a different base URL and is assumed to be reachable at this URL
OR_MANAGER_URL: ${OR_MANAGER_URL:-http://127.0.0.1:8080}

postgresql:
extends:
Expand Down
6 changes: 5 additions & 1 deletion profile/dev-ui.yml
Comment thread
Ekhorn marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# Please see profile/deploy.yml for configuration details for each service.
#
x-base: &base https://github.com/openremote/core.git#1.30.0:profile/deploy.yml
x-base: &base https://github.com/openremote/core.git#1.33.0:profile/deploy.yml

volumes:
manager-data:
Expand All @@ -24,8 +24,12 @@ services:
postgresql:
condition: service_healthy
environment:
# Public URL used in browser redirects and OIDC discovery
KC_HOSTNAME: http://localhost:8081/auth
Comment thread
Ekhorn marked this conversation as resolved.
Resolved
# Prevent theme caching during dev
KEYCLOAK_START_OPTS: --spi-theme-static-max-age=-1 --spi-theme-cache-themes=false --spi-theme-cache-templates=false
# manager has a different base URL and is assumed to be reachable at this URL
OR_MANAGER_URL: ${OR_MANAGER_URL:-http://127.0.0.1:8080}

postgresql:
extends:
Expand Down
8 changes: 3 additions & 5 deletions ui/app/custom-react/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
buildDir = "dist"

tasks.register('clean') {
dependsOn npmClean
tasks.register('clean', Delete) {
delete layout.buildDirectory
}

tasks.register('installDist', Copy) {
dependsOn npmBuild
mustRunAfter ":manager:installDist"
from project.buildDir
from layout.buildDirectory.dir("dist")
into "${project(':deployment').buildDir}/image/manager/app/${projectDir.name}"
}
13 changes: 7 additions & 6 deletions ui/app/custom-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@
"license": "AGPL-3.0-or-later",
"private": true,
"scripts": {
"clean": "npx tsc -b --clean && npx shx rm -rf dist",
"clean": "npx tsc -b --clean && npx shx rm -rf build",
"build": "npx cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 rspack build",
"serve": "npx cross-env NODE_ENV=development NODE_OPTIONS=--max_old_space_size=4096 rspack serve"
},
"dependencies": {
"@openremote/core": "~1.30.0",
"@openremote/model": "~1.30.0",
"@openremote/or-mwc-components": "~1.30.0",
"@openremote/core": "~1.33.0",
"@openremote/model": "~1.33.0",
"@openremote/or-mwc-components": "~1.33.0",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@rspack/cli": "^1.7.10",
"@rspack/core": "^1.7.10",
"@rspack/cli": "~2.1.10",
"@rspack/core": "~2.1.10",
"@rspack/dev-server": "~2.1.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@typescript-eslint/eslint-plugin": "8.40.0",
Expand Down
12 changes: 8 additions & 4 deletions ui/app/custom-react/rspack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { resolve } from "node:path";
import { defineConfig } from "@rspack/cli";
import { rspack } from "@rspack/core";

Expand Down Expand Up @@ -52,6 +53,11 @@ export default defineConfig({
test: /(maplibre|mapbox|@material|gridstack|@mdi).*\.css$/, // output css as strings
type: "asset/source",
},
{
test: /\.css$/,
exclude: /(maplibre|mapbox|@material|gridstack|@mdi).*\.css$/,
type: "css/auto",
},
{
test: /\.tsx$/,
type: "javascript/auto",
Expand Down Expand Up @@ -93,9 +99,7 @@ export default defineConfig({
],
},
output: {
publicPath: isDev ? "/custom-react/" : "/",
},
experiments: {
css: true,
path: resolve(__dirname, "build/dist"),
publicPath: isDev ? "/custom-react/" : "./",
},
});
8 changes: 3 additions & 5 deletions ui/app/custom/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
buildDir = "dist"

tasks.register('clean') {
dependsOn npmClean
tasks.register('clean', Delete) {
delete layout.buildDirectory
}

tasks.register('installDist', Copy) {
dependsOn npmBuild
mustRunAfter ":manager:installDist"
from project.buildDir
from layout.buildDirectory.dir("dist")
into "${project(':deployment').buildDir}/image/manager/app/${projectDir.name}"
}
Loading
Loading