ci: Remove scheduled build for beta, and fix the inputs (no-changelog)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-10-03 21:24:53 +02:00
parent 04632ef1b8
commit bc9fa10b06
2 changed files with 11 additions and 12 deletions

View file

@ -1,17 +1,16 @@
name: Docker Image - Beta
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
branch:
description: 'Branch to create image off.'
required: true
default: 'ai-beta'
tag:
description: 'Name of the docker tag to create.'
required: true
default: 'ai-beta-nightly'
inputs:
branch:
description: 'Branch to create image off.'
required: true
default: 'ai-beta'
tag:
description: 'Name of the docker tag to create.'
required: true
default: 'ai-beta'
jobs:
build:
@ -20,7 +19,7 @@ jobs:
- uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch || 'ai-tool-creation-breaking' }}
ref: ${{ github.event.inputs.branch || 'ai-beta' }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2

View file

@ -1,5 +1,4 @@
ARG NODE_VERSION=18
ARG N8N_RELEASE_TYPE=dev
# 1. Create an image to build n8n
FROM n8nio/base:${NODE_VERSION} as builder
@ -26,6 +25,7 @@ RUN rm -rf patches .npmrc *.yaml node_modules/.cache packages/**/node_modules/.c
# 2. Start with a new clean image with just the code that is needed to run n8n
FROM n8nio/base:${NODE_VERSION}
ARG N8N_RELEASE_TYPE=dev
COPY --from=builder /home/node /usr/local/lib/node_modules/n8n
RUN ln -s /usr/local/lib/node_modules/n8n/packages/cli/bin/n8n /usr/local/bin/n8n