This commit is contained in:
2025-03-12 15:55:21 +08:00
parent 9eb9e48875
commit 83144f737c
4 changed files with 35 additions and 15 deletions

View File

@@ -0,0 +1,31 @@
name: Build and Push Docker Image
on:
workflow_dispatch:
inputs:
tag:
description: "Docker tag"
required: true
default: "latest"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: git.yoshino-s.xyz
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.yoshino-s.xyz/${{ gitea.repository }}:${{ gitea.event.inputs.tag }}

View File

@@ -1,13 +0,0 @@
repos:
- repo: https://github.com/python-poetry/poetry
rev: "1.5.1"
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
- id: poetry-export
args: ["--with=dev", "-o", "requirements.dev.txt"]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: "v1.7.0"
hooks:
- id: autopep8

View File

@@ -4,6 +4,6 @@ FROM ghcr.io/n8n-io/n8n:latest
USER root USER root
COPY inject.js /tmp COPY inject.js /tmp
RUN cat /tmp/inject.js >> /usr/local/lib/node_modules/n8n/dist/License.js RUN cat /tmp/inject.js >> /usr/local/lib/node_modules/n8n/dist/license.js
USER node USER node

View File

@@ -22,7 +22,7 @@ license_sdk_1.LicenseManager.prototype.licenseCert = {
validFrom: new Date(), validFrom: new Date(),
validTo: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365), validTo: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
features: { features: {
planName: "Hacky", planName: "Enterprise",
"feat:sharing": true, "feat:sharing": true,
"feat:ldap": true, "feat:ldap": true,
"feat:saml": true, "feat:saml": true,
@@ -46,6 +46,8 @@ license_sdk_1.LicenseManager.prototype.licenseCert = {
'feat:askAi': true, 'feat:askAi': true,
'feat:communityNodes:customRegistry': true, 'feat:communityNodes:customRegistry': true,
'feat:aiCredits': true, 'feat:aiCredits': true,
'quota:aiCredits': 114514,
'quota:maxTeamProjects': 114514,
}, },
}, },
], ],