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 name: Docker Image - Beta
on: on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch: workflow_dispatch:
branch: inputs:
description: 'Branch to create image off.' branch:
required: true description: 'Branch to create image off.'
default: 'ai-beta' required: true
tag: default: 'ai-beta'
description: 'Name of the docker tag to create.' tag:
required: true description: 'Name of the docker tag to create.'
default: 'ai-beta-nightly' required: true
default: 'ai-beta'
jobs: jobs:
build: build:
@ -20,7 +19,7 @@ jobs:
- uses: actions/checkout@v3.5.3 - uses: actions/checkout@v3.5.3
with: with:
fetch-depth: 0 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-qemu-action@v2
- uses: docker/setup-buildx-action@v2 - uses: docker/setup-buildx-action@v2

View file

@ -1,5 +1,4 @@
ARG NODE_VERSION=18 ARG NODE_VERSION=18
ARG N8N_RELEASE_TYPE=dev
# 1. Create an image to build n8n # 1. Create an image to build n8n
FROM n8nio/base:${NODE_VERSION} as builder 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 # 2. Start with a new clean image with just the code that is needed to run n8n
FROM n8nio/base:${NODE_VERSION} FROM n8nio/base:${NODE_VERSION}
ARG N8N_RELEASE_TYPE=dev
COPY --from=builder /home/node /usr/local/lib/node_modules/n8n 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 RUN ln -s /usr/local/lib/node_modules/n8n/packages/cli/bin/n8n /usr/local/bin/n8n