From b0e17453f49b3e085d633f35fb9d8b2d89702f91 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 29 Dec 2020 20:27:48 +0100 Subject: [PATCH] :whale: Add support to choose branch and tag for custom build --- .github/workflows/docker-images-nightly.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-images-nightly.yml b/.github/workflows/docker-images-nightly.yml index c3a7829432..b7fcb2800f 100644 --- a/.github/workflows/docker-images-nightly.yml +++ b/.github/workflows/docker-images-nightly.yml @@ -4,6 +4,15 @@ on: schedule: - cron: "0 2 * * *" 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: @@ -15,6 +24,8 @@ jobs: - name: Checkout uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.branch }} - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -35,4 +46,4 @@ jobs: file: ./docker/images/n8n-custom/Dockerfile platforms: linux/amd64 push: true - tags: n8nio/n8n:nightly + tags: n8nio/n8n:${{ github.event.inputs.tag }}