2023-05-09 08:29:59 -07:00
|
|
|
name: Docker Image - V1 RC
|
2023-05-08 06:03:57 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 2 * * *'
|
2023-05-09 08:29:59 -07:00
|
|
|
workflow_dispatch:
|
2023-05-08 06:03:57 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-09 08:29:59 -07:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-06-02 05:18:32 -07:00
|
|
|
ref: release-v1
|
2023-05-08 06:03:57 -07:00
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-06-02 06:23:28 -07:00
|
|
|
node-version: 18.x
|
2023-05-08 06:03:57 -07:00
|
|
|
- run: npm install --prefix=.github/scripts --no-package-lock
|
|
|
|
|
|
|
|
- name: Bump package versions to 1.0.0
|
|
|
|
run: |
|
|
|
|
RELEASE_TYPE=major node .github/scripts/bump-versions.mjs
|
|
|
|
pnpm i --lockfile-only
|
|
|
|
|
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./docker/images/n8n-custom/Dockerfile
|
|
|
|
platforms: linux/amd64
|
|
|
|
provenance: false
|
|
|
|
push: true
|
|
|
|
tags: ${{ secrets.DOCKER_USERNAME }}/n8n:1.0.0-rc
|
|
|
|
no-cache: true
|