2020-12-29 06:00:57 -08:00
|
|
|
name: Docker Nightly Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2025-01-10 08:35:03 -08:00
|
|
|
- cron: '0 0 * * *'
|
2020-12-29 06:00:57 -08:00
|
|
|
workflow_dispatch:
|
2024-08-30 00:48:26 -07:00
|
|
|
|
2020-12-29 06:00:57 -08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-09 05:23:07 -08:00
|
|
|
- name: Checkout
|
2024-01-26 02:26:30 -08:00
|
|
|
uses: actions/checkout@v4.1.1
|
2020-12-29 11:27:48 -08:00
|
|
|
with:
|
2025-01-10 08:35:03 -08:00
|
|
|
ref: master
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2022-02-09 05:23:07 -08:00
|
|
|
- name: Set up QEMU
|
2025-01-10 08:35:03 -08:00
|
|
|
uses: docker/setup-qemu-action@v3.3.0
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2022-02-09 05:23:07 -08:00
|
|
|
- name: Set up Docker Buildx
|
2025-01-10 08:35:03 -08:00
|
|
|
uses: docker/setup-buildx-action@v3.8.0
|
|
|
|
|
|
|
|
- name: Login to GHCR
|
|
|
|
uses: docker/login-action@v3.3.0
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2022-02-09 05:23:07 -08:00
|
|
|
- name: Login to DockerHub
|
2025-01-10 08:35:03 -08:00
|
|
|
uses: docker/login-action@v3.3.0
|
2020-12-29 06:00:57 -08:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2022-09-21 01:50:15 -07:00
|
|
|
|
2025-01-10 08:35:03 -08:00
|
|
|
- name: Build and push image to GHCR and DockerHub
|
|
|
|
uses: docker/build-push-action@v6.11.0
|
|
|
|
env:
|
|
|
|
DOCKER_BUILD_SUMMARY: false
|
2020-12-29 06:00:57 -08:00
|
|
|
with:
|
|
|
|
context: .
|
2024-01-26 04:18:49 -08:00
|
|
|
file: ./docker/images/n8n-custom/Dockerfile
|
2023-10-03 11:49:04 -07:00
|
|
|
build-args: |
|
|
|
|
N8N_RELEASE_TYPE=nightly
|
2024-01-26 04:18:49 -08:00
|
|
|
platforms: linux/amd64,linux/arm64
|
2023-03-06 00:53:50 -08:00
|
|
|
provenance: false
|
2020-12-29 06:00:57 -08:00
|
|
|
push: true
|
2024-01-26 04:18:49 -08:00
|
|
|
cache-from: type=gha
|
|
|
|
cache-to: type=gha,mode=max
|
2025-01-10 08:35:03 -08:00
|
|
|
tags: |
|
|
|
|
ghcr.io/${{ github.repository_owner }}/n8n:nightly
|
2024-08-28 08:58:28 -07:00
|
|
|
${{ secrets.DOCKER_USERNAME }}/n8n:nightly
|