diff --git a/.github/workflows/docker-images-nightly.yml b/.github/workflows/docker-images-nightly.yml index 1d4321251..7fbdd8ef0 100644 --- a/.github/workflows/docker-images-nightly.yml +++ b/.github/workflows/docker-images-nightly.yml @@ -2,11 +2,15 @@ name: Docker Nightly Image CI on: schedule: - - cron: "0 1 * * *" + - cron: '0 1 * * *' workflow_dispatch: inputs: + repository: + description: 'GitHub repository to create image off.' + required: true + default: 'n8n-io/n8n' branch: - description: 'Name of the GitHub branch to create image off.' + description: 'GitHub branch to create image off.' required: true default: 'master' tag: @@ -15,31 +19,25 @@ on: default: 'nightly' jobs: - build: - runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v2 with: + name: ${{ github.event.inputs.repository || 'n8n-io/n8n' }} ref: ${{ github.event.inputs.branch || 'master' }} - - - name: Set up QEMU + - name: Set up QEMU uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub + - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push + - name: Build and push uses: docker/build-push-action@v2 with: context: .