diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..33cb99f --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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 }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index f1dc2d6..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -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 diff --git a/Dockerfile b/Dockerfile index 700ee49..52871d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,6 @@ FROM ghcr.io/n8n-io/n8n:latest USER root 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 diff --git a/inject.js b/inject.js index 69a268a..9152251 100644 --- a/inject.js +++ b/inject.js @@ -22,7 +22,7 @@ license_sdk_1.LicenseManager.prototype.licenseCert = { validFrom: new Date(), validTo: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365), features: { - planName: "Hacky", + planName: "Enterprise", "feat:sharing": true, "feat:ldap": true, "feat:saml": true, @@ -46,6 +46,8 @@ license_sdk_1.LicenseManager.prototype.licenseCert = { 'feat:askAi': true, 'feat:communityNodes:customRegistry': true, 'feat:aiCredits': true, + 'quota:aiCredits': 114514, + 'quota:maxTeamProjects': 114514, }, }, ],