32 lines
927 B
YAML
32 lines
927 B
YAML
name: Build Pipeline for de.captica.n8n
|
|
run-name: ${{ gitea.actor }} pushed new changes to ${{ gitea.branch }}
|
|
|
|
on:
|
|
push:
|
|
schedule:
|
|
- cron: '0 3 * * 1' # each monday
|
|
|
|
jobs:
|
|
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: |
|
|
# define a fixed version
|
|
#VERSION="2.13.2"
|
|
# or use npm to get the latest stable version
|
|
VERSION="$(npm view n8n version stable)"
|
|
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 |