@raketa-cloud/admin-starter-template 1.8.2 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,16 +54,18 @@ jobs:
54
54
 
55
55
  deploy:
56
56
  needs: build-and-push-image
57
- runs-on: ubuntu-latest
57
+ name: Deploy image to Google Cloud Run
58
+ runs-on: [self-hosted, linux]
59
+ permissions:
60
+ contents: "read"
61
+ id-token: "write"
58
62
  steps:
59
- - name: Deploy to remote server
60
- uses: studioraketa/deploy-docker-ssh@8.0.0
63
+ - uses: "google-github-actions/deploy-cloudrun@v2"
61
64
  with:
62
- ssh_user: ${{ env.SSH_USER }}
63
- ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
64
- ssh_host: ${{ env.SSH_HOST }}
65
- container_name: ${{ env.CONTAINER_NAME }}
66
- external_port: ${{ env.EXTERNAL_PORT }}
67
- internal_port: ${{ env.INTERNAL_PORT }}
68
- image_url: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main
69
- docker_environment: -e RAKETA_ENV="staging"
65
+ image: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main"
66
+ service: "admin-starter"
67
+ env_vars: |-
68
+ GATEWAY_PROJECT=1-raketa-website-dizeip
69
+ RAKETA_ENV=staging
70
+ region: europe-west3
71
+ flags: "--port=6969"
package/biome.json CHANGED
@@ -1,10 +1,8 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3
- "organizeImports": {
4
- "enabled": true
5
- },
2
+ "$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
3
+ "assist": { "actions": { "source": { "organizeImports": "on" } } },
6
4
  "files": {
7
- "ignore": ["node_modules", ".git", ".vscode"]
5
+ "includes": ["**", "!**/node_modules", "!**/.git", "!**/.vscode"]
8
6
  },
9
7
  "formatter": {
10
8
  "enabled": false
@@ -16,8 +14,24 @@
16
14
  "security": {
17
15
  "noDangerouslySetInnerHtml": "off"
18
16
  },
17
+ "suspicious": {
18
+ "noDuplicateProperties": "off"
19
+ },
19
20
  "complexity": {
20
21
  "noForEach": "off"
22
+ },
23
+ "style": {
24
+ "noParameterAssign": "error",
25
+ "noDescendingSpecificity": "off",
26
+ "useAsConstAssertion": "error",
27
+ "useDefaultParameterLast": "error",
28
+ "useEnumInitializers": "error",
29
+ "useSelfClosingElements": "error",
30
+ "useSingleVarDeclarator": "error",
31
+ "noUnusedTemplateLiteral": "error",
32
+ "useNumberNamespace": "error",
33
+ "noInferrableTypes": "error",
34
+ "noUselessElse": "error"
21
35
  }
22
36
  }
23
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin-starter-template",
3
- "version": "1.8.2",
3
+ "version": "1.9.1",
4
4
  "files": [
5
5
  "*"
6
6
  ],
@@ -15,9 +15,8 @@
15
15
  "prepare": "cp ./node_modules/@raketa-cloud/admin/dist/application.css ./static/application.css"
16
16
  },
17
17
  "dependencies": {
18
- "@biomejs/biome": "1.8.0",
19
- "@hono/node-server": "1.11.2",
20
- "@raketa-cloud/admin": "1.6.3",
18
+ "@hono/node-server": "1.17.1",
19
+ "@raketa-cloud/admin": "1.7.3",
21
20
  "graphql-request": "7.1.0",
22
21
  "hono": "^4.7.5",
23
22
  "prettier": "^3.3.1"
@@ -26,6 +25,7 @@
26
25
  "@babel/core": "7.24.7",
27
26
  "@babel/preset-env": "7.24.7",
28
27
  "@babel/preset-typescript": "7.24.7",
28
+ "@biomejs/biome": "2.1.3",
29
29
  "@types/node": "20.11.17",
30
30
  "jest": "29.7.0",
31
31
  "tsx": "^4.19.3"
package/src/app.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { serveStatic } from "@hono/node-server/serve-static";
2
2
  import {
3
3
  HonoAdapter,
4
+ routeStandard,
4
5
  setGlobalContext,
5
6
  setupCloud,
6
- routeStandard,
7
7
  } from "@raketa-cloud/admin";
8
8
  import { Hono } from "hono";
9
9
  import getConfig from "./getConfig";
@@ -20,4 +20,6 @@ setGlobalContext(honoAdapter, (ctx) => {
20
20
 
21
21
  routeStandard(honoAdapter);
22
22
 
23
+ honoAdapter.link();
24
+
23
25
  export default app;