mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐳 Add support to choose branch and tag for custom build
This commit is contained in:
parent
4fd6c06d65
commit
b0e17453f4
13
.github/workflows/docker-images-nightly.yml
vendored
13
.github/workflows/docker-images-nightly.yml
vendored
|
@ -4,6 +4,15 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 2 * * *"
|
- cron: "0 2 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: 'Name of the GitHub branch to create image off.'
|
||||||
|
required: true
|
||||||
|
default: 'master'
|
||||||
|
tag:
|
||||||
|
description: 'Name of the docker tag to create.'
|
||||||
|
required: true
|
||||||
|
default: 'nightly'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -15,6 +24,8 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.inputs.branch }}
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
|
@ -35,4 +46,4 @@ jobs:
|
||||||
file: ./docker/images/n8n-custom/Dockerfile
|
file: ./docker/images/n8n-custom/Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: n8nio/n8n:nightly
|
tags: n8nio/n8n:${{ github.event.inputs.tag }}
|
||||||
|
|
Loading…
Reference in a new issue