added possibility to set version of n8n
All checks were successful
Build Pipeline for de.captica.n8n / resolve_n8n_version (push) Successful in 1s
Build Pipeline for de.captica.n8n / publish_docker (push) Successful in 5m54s

This commit is contained in:
Tobias Lehmann
2026-03-25 10:59:44 +01:00
parent b4803b0970
commit 7c0a5c8416
2 changed files with 26 additions and 12 deletions

View File

@@ -4,9 +4,27 @@ run-name: ${{ gitea.actor }} pushed new changes to ${{ gitea.branch }}
on:
push:
schedule:
- cron: '0 3 * * *'
- cron: '0 3 * * 1' # each monday
jobs:
Publish Docker:
resolve_n8n_version:
runs-on: docker-ubuntu
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Get latest n8n version
id: get_version
shell: bash
run: |
VERSION="2.11.3"
#VERSION="$(npm view n8n version)" # using last stable version
echo "Using version=$VERSION"
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
publish_docker:
needs: resolve_n8n_version
uses: captica-oss/de.captica.expert.devops/.gitea/workflows/publish-docker.yaml@main
with:
build_args: |
VERSION=${{ needs.resolve_n8n_version.outputs.VERSION }}
secrets: inherit