added possibility to set version of n8n
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user